Simplify references to PUBLIC_URL
The Next.js from react-create-app codemod automatically added this, just in case it mattered for us. It doesn't! I'd rather just avoid the code complexity.
This commit is contained in:
parent
43089dd4ab
commit
4cd847f6ba
2 changed files with 3 additions and 6 deletions
|
@ -1,8 +1,5 @@
|
|||
module.exports = {
|
||||
reactStrictMode: true,
|
||||
env: {
|
||||
PUBLIC_URL: "",
|
||||
},
|
||||
async rewrites() {
|
||||
return [
|
||||
{
|
||||
|
|
|
@ -11,19 +11,19 @@ class MyDocument extends Document {
|
|||
rel="icon"
|
||||
type="image/png"
|
||||
sizes="32x32"
|
||||
href={`${process.env.PUBLIC_URL}/favicon-32x32.png`}
|
||||
href="/favicon-32x32.png"
|
||||
/>
|
||||
<link
|
||||
rel="icon"
|
||||
type="image/png"
|
||||
sizes="16x16"
|
||||
href={`${process.env.PUBLIC_URL}/favicon-16x16.png`}
|
||||
href="favicon-16x16.png"
|
||||
/>
|
||||
<meta name="theme-color" content="#000000" />
|
||||
<link
|
||||
rel="apple-touch-icon"
|
||||
sizes="180x180"
|
||||
href={`${process.env.PUBLIC_URL}/apple-touch-icon.png`}
|
||||
href="/apple-touch-icon.png"
|
||||
/>
|
||||
<style
|
||||
type="text/css"
|
||||
|
|
Loading…
Reference in a new issue