Skip to content

Commit

Permalink
Fix path
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaikh-Ubaid committed Aug 22, 2022
1 parent 893812e commit 0e80d77
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ const dev = process.env.NODE_ENV !== "production";

export const myServer = dev
? ""
: "";
: "/pull_request_preview";

// export const imgs = `${server}/imgs`;
2 changes: 1 addition & 1 deletion next.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
basePath: (process.env.NODE_ENV !== "production" ? "" : "")
basePath: (process.env.NODE_ENV !== "production" ? "" : "/pull_request_preview")
}

module.exports = nextConfig

0 comments on commit 0e80d77

Please sign in to comment.