2020-12-06 21:49:37 +11:00
|
|
|
// next.config.js
|
|
|
|
|
const withCSS = require('@zeit/next-css');
|
2021-09-05 16:12:45 +10:00
|
|
|
const withFonts = require('next-fonts');
|
|
|
|
|
const withImages = require('next-images');
|
|
|
|
|
const withPlugins = require("next-compose-plugins");
|
|
|
|
|
|
|
|
|
|
module.exports = withPlugins([withCSS, withFonts, withImages])
|
2021-02-04 14:27:14 +11:00
|
|
|
module.exports = {
|
|
|
|
|
serverRuntimeConfig: {
|
|
|
|
|
// Will only be available on the server side
|
2022-06-12 15:12:28 +10:00
|
|
|
base_path: 'http://localhost:1337/api/',
|
|
|
|
|
audio_path: 'https://audio.angrybeanie.com/',
|
2022-07-16 15:34:44 +10:00
|
|
|
media_path: process.env.MEDIA_BASE,
|
2022-07-17 12:38:51 +10:00
|
|
|
strapi_token: process.env.STRAPI_TOKEN,
|
|
|
|
|
gtag: process.env.GTAG
|
2021-02-04 14:27:14 +11:00
|
|
|
},
|
|
|
|
|
images: {
|
2023-02-11 16:42:58 +11:00
|
|
|
domains: ['www.angrybeanie.com', 'localhost', 'cms.local.angrybeanie.com', '127.0.0.1']
|
2021-02-04 14:27:14 +11:00
|
|
|
},
|
|
|
|
|
publicRuntimeConfig: {
|
2022-07-17 12:38:51 +10:00
|
|
|
analytics_code: process.env.GTAG
|
2021-02-04 14:27:14 +11:00
|
|
|
}
|
2022-12-11 15:20:27 +11:00
|
|
|
}
|