mirror of
https://github.com/documenso/documenso.git
synced 2025-11-18 18:51:37 +10:00
feat: add millionjs to marketing page
This commit is contained in:
@ -1,12 +1,19 @@
|
|||||||
/* eslint-disable @typescript-eslint/no-var-requires */
|
/* eslint-disable @typescript-eslint/no-var-requires */
|
||||||
const fs = require('fs');
|
import dotenv from 'dotenv';
|
||||||
const path = require('path');
|
import fs from 'fs';
|
||||||
const { withContentlayer } = require('next-contentlayer');
|
import million from 'million/compiler';
|
||||||
|
import { withContentlayer } from 'next-contentlayer';
|
||||||
|
import path from 'path';
|
||||||
|
import { fileURLToPath } from 'url';
|
||||||
|
|
||||||
|
const __filename = fileURLToPath(import.meta.url);
|
||||||
|
const __dirname = path.dirname(__filename);
|
||||||
|
|
||||||
|
// eslint-disable-next-line turbo/no-undeclared-env-vars
|
||||||
const ENV_FILES = ['.env', '.env.local', `.env.${process.env.NODE_ENV || 'development'}`];
|
const ENV_FILES = ['.env', '.env.local', `.env.${process.env.NODE_ENV || 'development'}`];
|
||||||
|
|
||||||
ENV_FILES.forEach((file) => {
|
ENV_FILES.forEach((file) => {
|
||||||
require('dotenv').config({
|
dotenv.config({
|
||||||
path: path.join(__dirname, `../../${file}`),
|
path: path.join(__dirname, `../../${file}`),
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@ -48,7 +55,7 @@ const config = {
|
|||||||
|
|
||||||
return config;
|
return config;
|
||||||
},
|
},
|
||||||
async headers() {
|
headers() {
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
source: '/:path*',
|
source: '/:path*',
|
||||||
@ -82,7 +89,7 @@ const config = {
|
|||||||
},
|
},
|
||||||
];
|
];
|
||||||
},
|
},
|
||||||
async rewrites() {
|
rewrites() {
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
source: '/ingest/:path*',
|
source: '/ingest/:path*',
|
||||||
@ -92,4 +99,8 @@ const config = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = withContentlayer(config);
|
export default million.next(withContentlayer(config), {
|
||||||
|
auto: {
|
||||||
|
rsc: true,
|
||||||
|
},
|
||||||
|
});
|
||||||
@ -24,6 +24,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",
|
||||||
|
"million": "^2.6.4",
|
||||||
"next": "14.0.0",
|
"next": "14.0.0",
|
||||||
"next-auth": "4.24.3",
|
"next-auth": "4.24.3",
|
||||||
"next-contentlayer": "^0.3.4",
|
"next-contentlayer": "^0.3.4",
|
||||||
|
|||||||
@ -18,6 +18,7 @@
|
|||||||
},
|
},
|
||||||
"include": [
|
"include": [
|
||||||
"next-env.d.ts",
|
"next-env.d.ts",
|
||||||
|
"**/*.mjs",
|
||||||
"**/*.ts",
|
"**/*.ts",
|
||||||
"**/*.tsx",
|
"**/*.tsx",
|
||||||
".next/types/**/*.ts",
|
".next/types/**/*.ts",
|
||||||
|
|||||||
Reference in New Issue
Block a user