Skip to content

Commit

Permalink
Docs: Don't use assetPrefix.
Browse files Browse the repository at this point in the history
  • Loading branch information
filiphsps authored Sep 24, 2024
1 parent 41f1797 commit 53bfc8b
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions docs/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,6 @@ import createVercelToolbar from '@vercel/toolbar/plugins/next';

const withVercelToolbar = createVercelToolbar();

export function getBaseUrl() {
if (process.env.VERCEL_ENV === 'production') {
return 'https://nordstar.dev';
}

return process.env.VERCEL_URL ? `https://${process.env.VERCEL_URL}` : undefined;
}

/** @type {import('next').NextConfig} */
let config = {
poweredByHeader: false,
Expand All @@ -18,12 +10,9 @@ let config = {
swcMinify: true,
productionBrowserSourceMaps: true,
compress: true,
assetPrefix: getBaseUrl(),
experimental: {
appNavFailHandling: true,
caseSensitiveRoutes: true,
cssChunking: 'strict',
esmExternals: true,
optimizePackageImports: [],
optimizeServerReact: true,
parallelServerBuildTraces: true,
Expand Down

0 comments on commit 53bfc8b

Please sign in to comment.