feat: Update footer layout, add social media links, and improve styling

This commit is contained in:
mauro-balades
2024-09-02 18:15:03 +02:00
parent ec6783038f
commit 7071eed755
22 changed files with 71 additions and 81 deletions

View File

@@ -1,8 +1,6 @@
const createNextIntlPlugin = require('next-intl/plugin');
const { PHASE_DEVELOPMENT_SERVER } = require('next/constants')
const withNextIntl = createNextIntlPlugin();
/** @type {import('next').NextConfig} */
const nextConfig = (phase, { defaultConfig }) => {
@@ -20,7 +18,6 @@ const nextConfig = (phase, { defaultConfig }) => {
pathname: '/gh/zen-browser/**',
}
],
formats: ["image/png", "image/jpeg", "image/svg+xml", "image/webp"],
domains: ['localhost', 'cdn.jsdelivr.net', "raw.githubusercontent.com"], // Allow images from jsDelivr
},
experimental: {
@@ -32,6 +29,18 @@ const nextConfig = (phase, { defaultConfig }) => {
compiler: {
styledComponents: true,
},
webpack: (
config,
{ buildId, dev, isServer, defaultLoaders, nextRuntime, webpack }
) => {
// Important: return the modified config
return {
output: {
// ...
globalObject: 'this',
},
}
},
};
if (phase === PHASE_DEVELOPMENT_SERVER) {
return {
@@ -46,4 +55,4 @@ const nextConfig = (phase, { defaultConfig }) => {
};
};
module.exports = withNextIntl(nextConfig);
module.exports = nextConfig;