mirror of
https://github.com/documenso/documenso.git
synced 2025-11-18 10:42:01 +10:00
feat: add millionjs to marketing page
This commit is contained in:
@ -1,12 +1,19 @@
|
||||
/* eslint-disable @typescript-eslint/no-var-requires */
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
const { withContentlayer } = require('next-contentlayer');
|
||||
import dotenv from 'dotenv';
|
||||
import fs from 'fs';
|
||||
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'}`];
|
||||
|
||||
ENV_FILES.forEach((file) => {
|
||||
require('dotenv').config({
|
||||
dotenv.config({
|
||||
path: path.join(__dirname, `../../${file}`),
|
||||
});
|
||||
});
|
||||
@ -48,7 +55,7 @@ const config = {
|
||||
|
||||
return config;
|
||||
},
|
||||
async headers() {
|
||||
headers() {
|
||||
return [
|
||||
{
|
||||
source: '/:path*',
|
||||
@ -82,7 +89,7 @@ const config = {
|
||||
},
|
||||
];
|
||||
},
|
||||
async rewrites() {
|
||||
rewrites() {
|
||||
return [
|
||||
{
|
||||
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",
|
||||
"luxon": "^3.4.0",
|
||||
"micro": "^10.0.1",
|
||||
"million": "^2.6.4",
|
||||
"next": "14.0.0",
|
||||
"next-auth": "4.24.3",
|
||||
"next-contentlayer": "^0.3.4",
|
||||
|
||||
@ -18,6 +18,7 @@
|
||||
},
|
||||
"include": [
|
||||
"next-env.d.ts",
|
||||
"**/*.mjs",
|
||||
"**/*.ts",
|
||||
"**/*.tsx",
|
||||
".next/types/**/*.ts",
|
||||
|
||||
Reference in New Issue
Block a user