We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6589b91 commit e638734Copy full SHA for e638734
.env.production
@@ -1,3 +1,3 @@
1
-NEXT_PUBLIC_URL='/brainhack_western_test_site/'
+NEXT_PUBLIC_URL='/brainhack_western_test_site'
2
NEXT_PUBLIC_LOADER='./src/lib/image-loaders/non-optomized.ts'
3
NEXT_PUBLIC_MAPS_EMBED_API_KEY=AIzaSyBZXJ7qVfVz98ImHlgsX0k6S-6Un3yQYUg
next.config.js
@@ -19,11 +19,7 @@ const withBundleAnalyzer = require('@next/bundle-analyzer')({
19
});
20
21
const basePath = () => {
22
- const path = process.env.NEXT_PUBLIC_URL;
23
- if (!path) {
24
- return path
25
- }
26
- return path.endsWith('/') ? path : `${path}/`
+ return process.env.NEXT_PUBLIC_URL;
27
}
28
29
/** @type {import('next').NextConfig} */
0 commit comments