17 lines
432 B
JavaScript
17 lines
432 B
JavaScript
import path from 'path';
|
|
import { fileURLToPath } from 'url';
|
|
|
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
output: 'standalone',
|
|
basePath: '/rtrips',
|
|
webpack: (config) => {
|
|
config.resolve.alias['maplibre-gl'] = path.resolve(__dirname, 'node_modules/maplibre-gl/dist/maplibre-gl.js');
|
|
return config;
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|