Skip to content

Commit

Permalink
Merge pull request #152 from ensdomains/hotfix/disable-playroom
Browse files Browse the repository at this point in the history
remove next.config rewrites
  • Loading branch information
storywithoutend authored May 21, 2024
2 parents ebb0650 + b4a7a6b commit f9e768b
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions docs/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,21 +43,21 @@ const config = {
},
async rewrites() {
// Rewrite playroom urls for production
if (process.env.NODE_ENV === 'production')
return [
{
source: '/playroom/preview',
destination: '/playroom/preview/index.html',
},
{
source: '/playroom/frame.html',
destination: '/playroom/frame.html',
},
{
source: '/playroom',
destination: '/playroom/index.html',
},
]
// if (process.env.NODE_ENV === 'production')
// return [
// {
// source: '/playroom/preview',
// destination: '/playroom/preview/index.html',
// },
// {
// source: '/playroom/frame.html',
// destination: '/playroom/frame.html',
// },
// {
// source: '/playroom',
// destination: '/playroom/index.html',
// },
// ]
return []
},
async redirects() {
Expand Down

0 comments on commit f9e768b

Please sign in to comment.