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:
Emi Matchu 2022-09-14 18:44:43 -07:00
parent 43089dd4ab
commit 4cd847f6ba
2 changed files with 3 additions and 6 deletions

View file

@ -1,8 +1,5 @@
module.exports = { module.exports = {
reactStrictMode: true, reactStrictMode: true,
env: {
PUBLIC_URL: "",
},
async rewrites() { async rewrites() {
return [ return [
{ {

View file

@ -11,19 +11,19 @@ class MyDocument extends Document {
rel="icon" rel="icon"
type="image/png" type="image/png"
sizes="32x32" sizes="32x32"
href={`${process.env.PUBLIC_URL}/favicon-32x32.png`} href="/favicon-32x32.png"
/> />
<link <link
rel="icon" rel="icon"
type="image/png" type="image/png"
sizes="16x16" sizes="16x16"
href={`${process.env.PUBLIC_URL}/favicon-16x16.png`} href="favicon-16x16.png"
/> />
<meta name="theme-color" content="#000000" /> <meta name="theme-color" content="#000000" />
<link <link
rel="apple-touch-icon" rel="apple-touch-icon"
sizes="180x180" sizes="180x180"
href={`${process.env.PUBLIC_URL}/apple-touch-icon.png`} href="/apple-touch-icon.png"
/> />
<style <style
type="text/css" type="text/css"