Skip to content

Commit

Permalink
fix: use base-path only on prod
Browse files Browse the repository at this point in the history
  • Loading branch information
multivoltage committed Jan 23, 2024
1 parent aece83a commit 7106bbd
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions apps/docs/next.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
const { PHASE_DEVELOPMENT_SERVER } = require("next/constants");

/** @type {import('next').NextConfig} */
module.exports = {
reactStrictMode: false,
output: "export",
basePath: "/react-use-zendesk",
module.exports = (phase, { defaultConfig }) => {
return {
reactStrictMode: false,
output: "export",
basePath: phase === PHASE_DEVELOPMENT_SERVER ? "" : "/react-use-zendesk",
};
};

0 comments on commit 7106bbd

Please sign in to comment.