Projekt

Obecné

Profil

« Předchozí | Další » 

Revize b6e24252

Přidáno uživatelem Lukáš Vlček před asi 2 roky(ů)

BasePath from env

Zobrazit rozdíly:

webapp/next.config.js
1
import env from '@beam-australia/react-env';
2

  
1 3
/** @type {import('next').NextConfig} */
2 4
const nextConfig = {
3 5
    reactStrictMode: true,
4
    basePath: '/law',
5
    assetPrefix: '/law',
6
    basePath: env('BASE_PATH') ?? '/law',
7
    assetPrefix: env('BASE_PATH') ?? '/law',
6 8
};
7 9

  
8 10
module.exports = nextConfig;

Také k dispozici: Unified diff