Compare commits

...

1 Commits

Author SHA1 Message Date
5650007302 exp: next 15 2024-09-24 16:19:51 +10:00
13 changed files with 626 additions and 711 deletions

View File

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

View File

@ -32,16 +32,16 @@
"lucide-react": "^0.279.0", "lucide-react": "^0.279.0",
"luxon": "^3.4.0", "luxon": "^3.4.0",
"micro": "^10.0.1", "micro": "^10.0.1",
"next": "14.2.6", "next": "15.0.0-canary.165",
"next-auth": "4.24.5", "next-auth": "4.24.5",
"next-axiom": "^1.5.1", "next-axiom": "^1.5.1",
"next-contentlayer": "^0.3.4", "next-contentlayer": "^0.3.4",
"next-plausible": "^3.10.1", "next-plausible": "^3.10.1",
"perfect-freehand": "^1.2.0", "perfect-freehand": "^1.2.0",
"posthog-js": "^1.77.3", "posthog-js": "^1.77.3",
"react": "^18", "react": "19.0.0-rc-e740d4b1-20240919",
"react-confetti": "^6.1.0", "react-confetti": "^6.1.0",
"react-dom": "^18", "react-dom": "19.0.0-rc-e740d4b1-20240919",
"react-hook-form": "^7.43.9", "react-hook-form": "^7.43.9",
"react-icons": "^4.11.0", "react-icons": "^4.11.0",
"recharts": "^2.7.2", "recharts": "^2.7.2",
@ -51,7 +51,7 @@
}, },
"devDependencies": { "devDependencies": {
"@lingui/loader": "^4.11.3", "@lingui/loader": "^4.11.3",
"@lingui/swc-plugin": "4.0.8", "@lingui/swc-plugin": "4.0.10",
"@types/node": "20.1.0", "@types/node": "20.1.0",
"@types/react": "^18", "@types/react": "^18",
"@types/react-dom": "^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" /> /// <reference types="next/navigation-types/compat/navigation" />
// NOTE: This file should not be edited // 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} */ /** @type {import('next').NextConfig} */
const config = { const config = {
output: process.env.DOCKER_OUTPUT ? 'standalone' : undefined, output: process.env.DOCKER_OUTPUT ? 'standalone' : undefined,
outputFileTracingRoot: path.join(__dirname, '../../'),
serverExternalPackages: ['@node-rs/bcrypt', '@documenso/pdf-sign', 'playwright'],
experimental: { experimental: {
outputFileTracingRoot: path.join(__dirname, '../../'),
serverComponentsExternalPackages: ['@node-rs/bcrypt', '@documenso/pdf-sign', 'playwright'],
serverActions: { serverActions: {
bodySizeLimit: '50mb', bodySizeLimit: '50mb',
}, },
swcPlugins: [['@lingui/swc-plugin', {}]], swcPlugins: [['@lingui/swc-plugin', {}]],
turbo: {
rules: {
'*.po': {
loaders: ['@lingui/loader'],
},
},
},
}, },
reactStrictMode: true, reactStrictMode: true,
transpilePackages: [ transpilePackages: [
@ -49,26 +56,11 @@ const config = {
FONT_CAVEAT_URI: `data:font/ttf;base64,${FONT_CAVEAT_BYTES.toString('base64')}`, 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')}`, FONT_NOTO_SANS_URI: `data:font/ttf;base64,${FONT_NOTO_SANS_BYTES.toString('base64')}`,
}, },
modularizeImports: { // modularizeImports: {
'lucide-react': { // 'lucide-react': {
transform: 'lucide-react/dist/esm/icons/{{ kebabCase member }}', // 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;
},
async rewrites() { async rewrites() {
return [ return [
{ {

View File

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

File diff suppressed because one or more lines are too long

1220
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -64,14 +64,19 @@
"dependencies": { "dependencies": {
"@documenso/pdf-sign": "^0.1.0", "@documenso/pdf-sign": "^0.1.0",
"@lingui/core": "^4.11.3", "@lingui/core": "^4.11.3",
"@lingui/swc-plugin": "4.0.10",
"inngest-cli": "^0.29.1", "inngest-cli": "^0.29.1",
"next-runtime-env": "^3.2.0", "next-runtime-env": "^3.2.0",
"react": "^18" "next": "15.0.0-canary.165",
"react": "19.0.0-rc-e740d4b1-20240919",
"react-dom": "19.0.0-rc-e740d4b1-20240919"
}, },
"overrides": { "overrides": {
"next": "14.2.6" "next": "15.0.0-canary.165",
"react": "19.0.0-rc-e740d4b1-20240919",
"react-dom": "19.0.0-rc-e740d4b1-20240919"
}, },
"trigger.dev": { "trigger.dev": {
"endpointId": "documenso-app" "endpointId": "documenso-app"
} }
} }

View File

@ -17,9 +17,9 @@
"@documenso/prisma": "*", "@documenso/prisma": "*",
"luxon": "^3.4.0", "luxon": "^3.4.0",
"micro": "^10.0.1", "micro": "^10.0.1",
"next": "14.2.6", "next": "15.0.0-canary.165",
"next-auth": "4.24.5", "next-auth": "4.24.5",
"react": "^18", "react": "19.0.0-rc-e740d4b1-20240919",
"ts-pattern": "^5.0.5", "ts-pattern": "^5.0.5",
"zod": "^3.22.4" "zod": "^3.22.4"
} }

View File

@ -41,13 +41,13 @@
"luxon": "^3.4.0", "luxon": "^3.4.0",
"micro": "^10.0.1", "micro": "^10.0.1",
"nanoid": "^4.0.2", "nanoid": "^4.0.2",
"next": "14.2.6", "next": "15.0.0-canary.165",
"next-auth": "4.24.5", "next-auth": "4.24.5",
"oslo": "^0.17.0", "oslo": "^0.17.0",
"pdf-lib": "^1.17.1", "pdf-lib": "^1.17.1",
"pg": "^8.11.3", "pg": "^8.11.3",
"playwright": "1.43.0", "playwright": "1.43.0",
"react": "^18", "react": "19.0.0-rc-e740d4b1-20240919",
"remeda": "^2.12.1", "remeda": "^2.12.1",
"sharp": "0.32.6", "sharp": "0.32.6",
"stripe": "^12.7.0", "stripe": "^12.7.0",

View File

@ -22,7 +22,7 @@
"@types/luxon": "^3.3.2", "@types/luxon": "^3.3.2",
"@types/react": "^18", "@types/react": "^18",
"@types/react-dom": "^18", "@types/react-dom": "^18",
"react": "^18", "react": "19.0.0-rc-e740d4b1-20240919",
"typescript": "5.2.2" "typescript": "5.2.2"
}, },
"dependencies": { "dependencies": {
@ -65,12 +65,12 @@
"framer-motion": "^10.12.8", "framer-motion": "^10.12.8",
"lucide-react": "^0.279.0", "lucide-react": "^0.279.0",
"luxon": "^3.4.2", "luxon": "^3.4.2",
"next": "14.2.6", "next": "15.0.0-canary.165",
"pdfjs-dist": "3.11.174", "pdfjs-dist": "3.11.174",
"react": "^18", "react": "19.0.0-rc-e740d4b1-20240919",
"react-colorful": "^5.6.1", "react-colorful": "^5.6.1",
"react-day-picker": "^8.7.1", "react-day-picker": "^8.7.1",
"react-dom": "^18", "react-dom": "19.0.0-rc-e740d4b1-20240919",
"react-hook-form": "^7.45.4", "react-hook-form": "^7.45.4",
"react-pdf": "7.7.3", "react-pdf": "7.7.3",
"react-rnd": "^10.4.1", "react-rnd": "^10.4.1",

View File

@ -2,12 +2,20 @@
"$schema": "https://turbo.build/schema.json", "$schema": "https://turbo.build/schema.json",
"pipeline": { "pipeline": {
"build": { "build": {
"dependsOn": ["prebuild", "^build"], "dependsOn": [
"outputs": [".next/**", "!.next/cache/**"] "prebuild",
"^build"
],
"outputs": [
".next/**",
"!.next/cache/**"
]
}, },
"prebuild": { "prebuild": {
"cache": false, "cache": false,
"dependsOn": ["^prebuild"] "dependsOn": [
"^prebuild"
]
}, },
"lint": { "lint": {
"cache": false "cache": false
@ -23,7 +31,9 @@
"persistent": true "persistent": true
}, },
"start": { "start": {
"dependsOn": ["^build"], "dependsOn": [
"^build"
],
"cache": false, "cache": false,
"persistent": true "persistent": true
}, },
@ -31,14 +41,18 @@
"cache": false "cache": false
}, },
"test:e2e": { "test:e2e": {
"dependsOn": ["^build"], "dependsOn": [
"^build"
],
"cache": false "cache": false
}, },
"translate:compile": { "translate:compile": {
"cache": false "cache": false
} }
}, },
"globalDependencies": ["**/.env.*local"], "globalDependencies": [
"**/.env.*local"
],
"globalEnv": [ "globalEnv": [
"APP_VERSION", "APP_VERSION",
"NEXT_PRIVATE_ENCRYPTION_KEY", "NEXT_PRIVATE_ENCRYPTION_KEY",