next.jsnextjs
Thursday, January 25, 2024
javascript
/**
* @type {import('next').NextConfig}
*/
const nextConfig = {
output: 'export',
// Optional: Change links `/me` -> `/me/` and emit `/me.html` -> `/me/index.html`
// trailingSlash: true,
// Optional: Prevent automatic `/me` -> `/me/`, instead preserve `href`
// skipTrailingSlashRedirect: true,
// Optional: Change the output directory `out` -> `dist`
// distDir: 'dist',
}
module.exports = nextConfig
css
.bg-\[\#f1f1f1\] {
--tw-bg-opacity: 1;
background-color: rgb(241 241 241/var(--tw-bg-opacity));
}
css
.text-\[\#666\]{
color: #666;
}
.border-\[\#c7c7c7\]{
border-color: #c7c7c7;
}
.text-\[\#181818\]{
color: #181818;
}
.text-white {
color: white
}
.text-\[\#ff0000\] {
color: rgb(255,0,0);
}
.bg-\[\#fff\] {
background-color: #fff;
}
.text-\[\#006EC5\] {
color: #006EC5;
}
.text-\[\#ff0000\] {
color: #ff0000;
}
.bg-\[\#7CC9BD\] {
background-color: rgb(124,201,189);
}
.text-\[\#F13429\] {
color: #F13429;
}
.bg-\[\#F13429\] {
background-color: #F13429;
}
.bg-\[\#F86818\] {
background-color: #F86818;
}
json
"scripts": {
"dev": "next dev -p 3000",
"dev.turbo": "next dev --turbo",
"build": "next build && npx swc ./dist/_next/static -d ./dist/",
"build:test": "dotenv -e .env.test next build && npx swc ./dist/_next/static -d ./dist/",
"build:pre": "dotenv -e .env.pre next build && npx swc ./dist/_next/static -d ./dist/",
"build:css": "npx postcss dist/_next/static/css/*.css -d dist/_next/static/css --config postbuild.config.js",
"start": "next start -p 3001",
"lint": "next lint"
},