Skip to content

Commit

Permalink
fix: typing
Browse files Browse the repository at this point in the history
  • Loading branch information
braswelljr committed Aug 20, 2023
1 parent 59c47c5 commit 3263455
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions web/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const withPWA = require('next-pwa')({

/** @type {import('next').NextConfig} */
const nextConfig = {
// output: 'export',
output: 'export',
distDir: process.env.NODE_ENV === 'development' ? 'out' : 'dist',
images: { unoptimized: true },
webpack: (config, { defaultLoaders }) => {
Expand All @@ -21,11 +21,11 @@ const nextConfig = {
config.resolve.modules.push(path.resolve(`./`))

return config
},
// for local development - (\\d{1,}) is for port number
async rewrites() {
return [{ source: '/api/parse', destination: 'http://localhost:8080/api/parse' }]
}
// for local development - (\\d{1,}) is for port number
// async rewrites() {
// return [{ source: '/api/parse', destination: 'http://localhost:8080/api/parse' }]
// }
}

const withALL = (nextConfig = {}) => withContentlayer(withPWA(nextConfig))
Expand Down

0 comments on commit 3263455

Please sign in to comment.