// next.config.js const withCSS = require('@zeit/next-css'); const withFonts = require('next-fonts'); const withImages = require('next-images'); const withPlugins = require("next-compose-plugins"); module.exports = withPlugins([withCSS, withFonts, withImages]) module.exports = { serverRuntimeConfig: { // Will only be available on the server side base_path: 'http://localhost:1337/api/', audio_path: 'https://audio.angrybeanie.com/', media_path: process.env.MEDIA_BASE, strapi_token: process.env.STRAPI_TOKEN, gtag: process.env.GTAG }, images: { domains: ['www.angrybeanie.com', 'localhost', 'cms.local.angrybeanie.com'] }, publicRuntimeConfig: { analytics_code: process.env.GTAG }, async headers() { return [ { source: "/", headers: [ { key: "X-Clacks-Overhead", value: "GNU Richard James Purser, GNU Jean Franke, GNU Patrick Evans, GNU William David Evans" } ], } ] } }