fix: checking CORS preview mode

This commit is contained in:
Olaleye Blessing 2022-04-19 12:20:32 +01:00
parent 2fe682aff3
commit da6695227c
1 changed files with 2 additions and 1 deletions

View File

@ -14,7 +14,8 @@ app.use(
cors({
origin:
process.env.NODE_ENV?.trim() === 'development'
? 'http://localhost:3000'
? // ? 'http://localhost:3000'
'https://url-minify-git-fork-olaleye-blessing-fixurlminified-bravo68web.vercel.app'
: 'https://minfy.xyz',
})
)