exp: next 15

This commit is contained in:
Mythie
2024-09-24 16:19:51 +10:00
parent ddee8a8272
commit 5650007302
13 changed files with 626 additions and 711 deletions

View File

@ -16,12 +16,12 @@
"@documenso/tailwind-config": "*",
"@documenso/trpc": "*",
"@documenso/ui": "*",
"next": "14.2.6",
"next": "15.0.0-canary.165",
"next-plausible": "^3.12.0",
"nextra": "^2.13.4",
"nextra-theme-docs": "^2.13.4",
"react": "^18",
"react-dom": "^18"
"react": "19.0.0-rc-e740d4b1-20240919",
"react-dom": "19.0.0-rc-e740d4b1-20240919"
},
"devDependencies": {
"@types/node": "^20",

View File

@ -32,16 +32,16 @@
"lucide-react": "^0.279.0",
"luxon": "^3.4.0",
"micro": "^10.0.1",
"next": "14.2.6",
"next": "15.0.0-canary.165",
"next-auth": "4.24.5",
"next-axiom": "^1.5.1",
"next-contentlayer": "^0.3.4",
"next-plausible": "^3.10.1",
"perfect-freehand": "^1.2.0",
"posthog-js": "^1.77.3",
"react": "^18",
"react": "19.0.0-rc-e740d4b1-20240919",
"react-confetti": "^6.1.0",
"react-dom": "^18",
"react-dom": "19.0.0-rc-e740d4b1-20240919",
"react-hook-form": "^7.43.9",
"react-icons": "^4.11.0",
"recharts": "^2.7.2",
@ -51,7 +51,7 @@
},
"devDependencies": {
"@lingui/loader": "^4.11.3",
"@lingui/swc-plugin": "4.0.8",
"@lingui/swc-plugin": "4.0.10",
"@types/node": "20.1.0",
"@types/react": "^18",
"@types/react-dom": "^18"

File diff suppressed because one or more lines are too long

View File

@ -3,4 +3,4 @@
/// <reference types="next/navigation-types/compat/navigation" />
// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.

View File

@ -25,13 +25,20 @@ const FONT_NOTO_SANS_BYTES = fs.readFileSync(
/** @type {import('next').NextConfig} */
const config = {
output: process.env.DOCKER_OUTPUT ? 'standalone' : undefined,
outputFileTracingRoot: path.join(__dirname, '../../'),
serverExternalPackages: ['@node-rs/bcrypt', '@documenso/pdf-sign', 'playwright'],
experimental: {
outputFileTracingRoot: path.join(__dirname, '../../'),
serverComponentsExternalPackages: ['@node-rs/bcrypt', '@documenso/pdf-sign', 'playwright'],
serverActions: {
bodySizeLimit: '50mb',
},
swcPlugins: [['@lingui/swc-plugin', {}]],
turbo: {
rules: {
'*.po': {
loaders: ['@lingui/loader'],
},
},
},
},
reactStrictMode: true,
transpilePackages: [
@ -49,26 +56,11 @@ const config = {
FONT_CAVEAT_URI: `data:font/ttf;base64,${FONT_CAVEAT_BYTES.toString('base64')}`,
FONT_NOTO_SANS_URI: `data:font/ttf;base64,${FONT_NOTO_SANS_BYTES.toString('base64')}`,
},
modularizeImports: {
'lucide-react': {
transform: 'lucide-react/dist/esm/icons/{{ kebabCase member }}',
},
},
webpack: (config, { isServer }) => {
// fixes: Module not found: Cant resolve ../build/Release/canvas.node
if (isServer) {
config.resolve.alias.canvas = false;
}
config.module.rules.push({
test: /\.po$/,
use: {
loader: '@lingui/loader',
},
});
return config;
},
// modularizeImports: {
// 'lucide-react': {
// transform: 'lucide-react/dist/esm/icons/{{ kebabCase member }}',
// },
// },
async rewrites() {
return [
{

View File

@ -35,7 +35,7 @@
"lucide-react": "^0.279.0",
"luxon": "^3.4.0",
"micro": "^10.0.1",
"next": "14.2.6",
"next": "15.0.0-canary.165",
"next-auth": "4.24.5",
"next-axiom": "^1.5.1",
"next-plausible": "^3.10.1",
@ -44,9 +44,9 @@
"perfect-freehand": "^1.2.0",
"posthog-js": "^1.75.3",
"posthog-node": "^3.1.1",
"react": "^18",
"react": "19.0.0-rc-e740d4b1-20240919",
"react-call": "^1.3.0",
"react-dom": "^18",
"react-dom": "19.0.0-rc-e740d4b1-20240919",
"react-dropzone": "^14.2.3",
"react-hook-form": "^7.43.9",
"react-hotkeys-hook": "^4.4.1",
@ -63,7 +63,7 @@
"devDependencies": {
"@documenso/tailwind-config": "*",
"@lingui/loader": "^4.11.3",
"@lingui/swc-plugin": "4.0.8",
"@lingui/swc-plugin": "4.0.10",
"@simplewebauthn/types": "^9.0.1",
"@types/formidable": "^2.0.6",
"@types/luxon": "^3.3.1",

File diff suppressed because one or more lines are too long