-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathnext.config.js
More file actions
87 lines (84 loc) · 2.28 KB
/
Copy pathnext.config.js
File metadata and controls
87 lines (84 loc) · 2.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
import { paraglideWebpackPlugin } from '@inlang/paraglide-js'
/** @type {import('next').NextConfig} */
const nextConfig = {
typescript: {
ignoreBuildErrors: true,
},
experimental: {
serverActions: {
bodySizeLimit: '40mb',
},
},
output: "standalone",
webpack: (config) => {
config.plugins.push(
paraglideWebpackPlugin({
outdir: './src/paraglide',
project: './project.inlang',
strategy: ['cookie', 'preferredLanguage', 'url', 'baseLocale'],
cookieName: 'gororobas--locale',
outputStructure: 'message-modules',
urlPatterns: [
{
pattern: '/notas/nova',
localized: [
['es', '/es/notas/nueva'],
['pt', '/notas/nova'],
],
},
{
pattern: '/vegetais/novo',
localized: [
['es', '/es/vegetales/nuevo'],
['pt', '/vegetais/novo'],
],
},
{
pattern: '/biblioteca/novo-material',
localized: [
['es', '/es/biblioteca/nuevo-material'],
['pt', '/biblioteca/novo-material'],
],
},
{
pattern: '/vegetais/:handle(.*)?',
localized: [
['es', '/es/vegetales/:handle(.*)?'],
['pt', '/vegetais/:handle(.*)?'],
],
},
{
pattern: '/pessoas/:handle/contribuicoes',
localized: [
['es', '/es/personas/:handle/contribuciones'],
['pt', '/pessoas/:handle/contribuicoes'],
],
},
{
pattern: '/pessoas/:handle(.*)?',
localized: [
['es', '/es/personas/:handle(.*)?'],
['pt', '/pessoas/:handle(.*)?'],
],
},
{
pattern: '/sugestoes/:handle(.*)?',
localized: [
['es', '/es/sugerencias/:handle(.*)?'],
['pt', '/sugestoes/:handle(.*)?'],
],
},
{
pattern: '/:path(.*)?',
localized: [
['es', '/es/:path(.*)?'],
['pt', '/:path(.*)?'],
],
},
],
}),
)
return config
},
}
export default nextConfig