Skip to content

Commit 0473630

Browse files
committed
Merge branch 'destino' into dev
2 parents 6054797 + 0981218 commit 0473630

90 files changed

Lines changed: 1766 additions & 971 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

archive/next.config.js

Lines changed: 44 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,54 @@
1-
const path = require('path')
1+
const path = require("path");
22

33
/** @type {import('next').NextConfig} */
44
const nextConfig = {
5+
optimizeFonts: true,
56
poweredByHeader: false,
67
trailingSlash: true,
78
experimental: {
89
externalDir: true,
910
},
11+
redirects() {
12+
// Generic page redirects from Gatsby archive are managed here.
13+
// Session specific redirects are managed as dynamic routes to avoid performance issues.
14+
const redirects = [
15+
{
16+
source: "/archive",
17+
destination: "/",
18+
permanent: true,
19+
},
20+
{
21+
source: "/archive/watch",
22+
destination: "/watch",
23+
permanent: true,
24+
},
25+
{
26+
source: "/archive/playlists",
27+
destination: "/watch",
28+
permanent: true,
29+
},
30+
...Array.from({ length: 8 }, (_, i) => ({
31+
source: `/archive/playlists/devcon-${7 - i}`,
32+
destination: `/watch?event=devcon-${7 - i}`,
33+
permanent: true,
34+
})),
35+
];
36+
37+
return redirects;
38+
},
1039
webpack: (config, { buildId, webpack }) => {
1140
config.module.rules.push(
1241
{
1342
test: /\.svg$/,
1443
exclude: /icons/,
1544
use: [
1645
{
17-
loader: '@svgr/webpack',
46+
loader: "@svgr/webpack",
1847
options: {
1948
svgoConfig: {
2049
plugins: [
2150
{
22-
name: 'preset-default',
51+
name: "preset-default",
2352
params: {
2453
overrides: {
2554
removeViewBox: false,
@@ -38,16 +67,16 @@ const nextConfig = {
3867
issuer: { not: /\.(css|scss|sass)$/ },
3968
use: [
4069
{
41-
loader: '@svgr/webpack',
70+
loader: "@svgr/webpack",
4271
options: {
4372
icon: true,
4473
svgProps: {
45-
className: 'icon',
74+
className: "icon",
4675
},
4776
svgoConfig: {
4877
plugins: [
4978
{
50-
name: 'preset-default',
79+
name: "preset-default",
5180
params: {
5281
overrides: {
5382
removeViewBox: false,
@@ -63,8 +92,8 @@ const nextConfig = {
6392
{
6493
test: /\.(glsl|vs|fs|vert|frag)$/,
6594
exclude: /node_modules/,
66-
use: ['raw-loader', 'glslify-loader'],
67-
},
95+
use: ["raw-loader", "glslify-loader"],
96+
}
6897
);
6998

7099
// Modify the file loader rule to ignore *.svg, since we have it handled now.
@@ -75,15 +104,19 @@ const nextConfig = {
75104
plugins: [
76105
...config.plugins,
77106
new webpack.DefinePlugin({
78-
'process.env.CONFIG_BUILD_ID': JSON.stringify(buildId),
107+
"process.env.CONFIG_BUILD_ID": JSON.stringify(buildId),
79108
}),
80109
],
81110
resolve: {
82111
...config.resolve,
83-
modules: [path.resolve(__dirname, 'node_modules'), path.resolve(__dirname, 'src'), 'node_modules'],
112+
modules: [
113+
path.resolve(__dirname, "node_modules"),
114+
path.resolve(__dirname, "src"),
115+
"node_modules",
116+
],
84117
},
85118
};
86119
},
87120
};
88121

89-
module.exports = nextConfig
122+
module.exports = nextConfig;

archive/public/archive-social.png

649 KB
Loading
1.76 MB
Loading
416 KB
Loading
1.32 MB
Loading
1.3 MB
Loading
1.8 MB
Loading
1.57 MB
Loading
1.2 MB
Loading
1.25 MB
Loading

0 commit comments

Comments
 (0)