update .env.production and next.config.js
This commit is contained in:
parent
823c7e73ef
commit
dabead8fe5
|
@ -1,2 +1,4 @@
|
|||
GA_TRACKING_ID=G-355ES1R23J
|
||||
NEXT_PUBLIC_API_URI=https://api.zdamegzaminzawodowy.pl/graphql
|
||||
NEXT_PUBLIC_API_URI=https://api.zdamegzaminzawodowy.pl/graphql
|
||||
NEXT_PUBLIC_URL=https://zdamegzaminzawodowy.pl
|
||||
NEXT_PUBLIC_CDN_URI=https://cdn.zdamegzaminzawodowy.pl/
|
|
@ -1,10 +1,14 @@
|
|||
const CDN = process.env.NEXT_PUBLIC_CDN_URI
|
||||
? new URL(process.env.NEXT_PUBLIC_CDN_URI)
|
||||
: '';
|
||||
|
||||
module.exports = {
|
||||
i18n: {
|
||||
locales: ['pl'],
|
||||
defaultLocale: 'pl',
|
||||
},
|
||||
images: {
|
||||
domains: ['localhost', 'cdn.zdamegzaminzawodowy.pl'],
|
||||
domains: CDN instanceof URL ? ['localhost', CDN.hostname] : ['localhost'],
|
||||
},
|
||||
async headers() {
|
||||
return [
|
||||
|
|
Reference in New Issue