Skip to content

Commit e638734

Browse files
committed
Remove auto / addition to basePath
1 parent 6589b91 commit e638734

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

Diff for: .env.production

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
NEXT_PUBLIC_URL='/brainhack_western_test_site/'
1+
NEXT_PUBLIC_URL='/brainhack_western_test_site'
22
NEXT_PUBLIC_LOADER='./src/lib/image-loaders/non-optomized.ts'
33
NEXT_PUBLIC_MAPS_EMBED_API_KEY=AIzaSyBZXJ7qVfVz98ImHlgsX0k6S-6Un3yQYUg

Diff for: next.config.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,7 @@ const withBundleAnalyzer = require('@next/bundle-analyzer')({
1919
});
2020

2121
const basePath = () => {
22-
const path = process.env.NEXT_PUBLIC_URL;
23-
if (!path) {
24-
return path
25-
}
26-
return path.endsWith('/') ? path : `${path}/`
22+
return process.env.NEXT_PUBLIC_URL;
2723
}
2824

2925
/** @type {import('next').NextConfig} */

0 commit comments

Comments
 (0)