go.charczuk.com@v0.0.0-20240327042549-bc490516bd1a/projects/nodes/static/_nextjs/next.config.js (about) 1 /** 2 * Copyright (c) 2024 - Present. Will Charczuk. All rights reserved. 3 * Use of this source code is governed by a MIT license that can be found in the LICENSE file at the root of the repository. 4 */ 5 const { PHASE_DEVELOPMENT_SERVER } = require('next/constants') 6 7 module.exports = async (phase, { defaultConfig }) => { 8 /** 9 * @type {import('next').NextConfig} 10 */ 11 const nextConfig = { 12 output: 'export', 13 // Optional: Add a trailing slash to all paths `/about` -> `/about/` 14 // trailingSlash: true, 15 // Optional: Change the output directory `out` -> `dist` 16 distDir: phase === PHASE_DEVELOPMENT_SERVER ? '_dev' : '_dist', 17 } 18 return nextConfig 19 }