Skip to content

Commit 8903a8b

Browse files
committed
limit asset prefixing to production
1 parent 6728061 commit 8903a8b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

apps/web/next.config.mjs

+4-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,10 @@ const codeSnippetsDir = path.resolve('./src/code')
4848
const nextConfig = {
4949
pageExtensions: ['js', 'jsx', 'ts', 'tsx', 'mdx'],
5050
basePath: '',
51-
assetPrefix: `https://${process.env.VERCEL_URL}`,
51+
assetPrefix:
52+
process.env.NODE_ENV === 'production'
53+
? `https://${process.env.VERCEL_URL}`
54+
: undefined,
5255
headers: async () => [
5356
{
5457
source: '/:path*',

0 commit comments

Comments
 (0)