Skip to content

Commit

Permalink
remove base path
Browse files Browse the repository at this point in the history
  • Loading branch information
JeelRajodiya committed Jul 28, 2024
1 parent 58ac4a8 commit 19348bb
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
/** @type {import('next').NextConfig} */

import createMDX from "@next/mdx";
import remarkFrontmatter from 'remark-frontmatter'
import remarkMdxFrontmatter from 'remark-mdx-frontmatter'
import remarkFrontmatter from "remark-frontmatter";
import remarkMdxFrontmatter from "remark-mdx-frontmatter";

const withMDX = createMDX({
// Add markdown plugins here, as desired
options: {
remarkPlugins: [remarkFrontmatter, [remarkMdxFrontmatter,{name:"metadata"}]],

remarkPlugins: [
remarkFrontmatter,
[remarkMdxFrontmatter, { name: "metadata" }],
],
},
});

Expand All @@ -18,13 +20,11 @@ const nextConfig = {
pageExtensions: ["js", "jsx", "md", "mdx", "ts", "tsx"],

output: "export",
basePath: process.env.MODE === "local" ? "" : "/tour",
images: { unoptimized: true } ,
compiler:{
styledComponents:true
}


images: { unoptimized: true },
compiler: {
styledComponents: true,
},
};

export default withMDX(nextConfig);

0 comments on commit 19348bb

Please sign in to comment.