Skip to content

Commit

Permalink
Add webpack configuration and output options to
Browse files Browse the repository at this point in the history
next.config
  • Loading branch information
JeelRajodiya committed May 9, 2024
1 parent 0671cfd commit c366f9d
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
/** @type {import('next').NextConfig} */
const nextConfig = {};
const nextConfig = {

webpack: (config, { buildId, dev, isServer, defaultLoaders, webpack }) => {
config.module.rules.push(
{
test: /\.md$/,
// This is the asset module.
type: 'asset/source',
}
)
return config
},

output:process.env.HOST !=="GitHub" ? "standalone" : "export",
basePath:process.env.HOST !== "GitHub" ? "" : "/tour"


};

export default nextConfig;

0 comments on commit c366f9d

Please sign in to comment.