Skip to content

Commit d8d9809

Browse files
Set basePath & assetPrefix to relative url path.
1 parent 0f16e86 commit d8d9809

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

next.config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ const nextConfig: NextConfig = {
1919

2020
// Conditionally set the output mode for the build.
2121
output: isStaticExport ? 'export' : undefined,
22-
basePath: isGithubPages ? `/${repoName}` : '',
23-
assetPrefix: isGithubPages ? `/${repoName}/` : '',
22+
basePath: './', //isGithubPages ? `/${repoName}` : '',
23+
assetPrefix: './', //isGithubPages ? `/${repoName}/` : '',
2424

25-
allowedDevOrigins: ['https://new.codebuilder.org', 'https://new.codebuilder.org:443'], // resolves the CORS warning
25+
allowedDevOrigins: ['https://new.codebuilder.org', 'https://new.codebuilder.org:443', 'https://dev.codebuilder.org', 'https://dev.codebuilder.org:443'], // resolves the CORS warning
2626

2727
// Note: If you are using next/image, you may need to add an
2828
// unoptimized: true flag here if you are not using a custom loader.

0 commit comments

Comments
 (0)