From Mohan Initial Push
This commit is contained in:
parent
92a095ebd0
commit
e92aeb9a66
22
README.md
22
README.md
@ -16,6 +16,28 @@ bun dev
|
|||||||
|
|
||||||
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
|
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
|
||||||
|
|
||||||
|
## Static Export
|
||||||
|
|
||||||
|
This project is configured with `output: "export"` in `next.config.ts`.
|
||||||
|
|
||||||
|
Run:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm run build
|
||||||
|
```
|
||||||
|
|
||||||
|
Next.js writes the static website to:
|
||||||
|
|
||||||
|
```text
|
||||||
|
out/
|
||||||
|
```
|
||||||
|
|
||||||
|
Upload or serve the contents of `out/` directly from nginx, Apache, cPanel, S3, Cloudflare Pages, or any static file host. For a local static preview after building, run:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm run serve:static
|
||||||
|
```
|
||||||
|
|
||||||
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
|
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
|
||||||
|
|
||||||
This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.
|
This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.
|
||||||
|
|||||||
@ -1,17 +1,24 @@
|
|||||||
import { defineConfig, globalIgnores } from "eslint/config";
|
import { FlatCompat } from "@eslint/eslintrc";
|
||||||
|
import { dirname } from "path";
|
||||||
|
import { fileURLToPath } from "url";
|
||||||
|
|
||||||
// simple extends-based config to avoid iterable errors
|
const __filename = fileURLToPath(import.meta.url);
|
||||||
const eslintConfig = defineConfig({
|
const __dirname = dirname(__filename);
|
||||||
extends: [
|
|
||||||
"next/core-web-vitals",
|
const compat = new FlatCompat({
|
||||||
"next/typescript",
|
baseDirectory: __dirname,
|
||||||
],
|
});
|
||||||
ignorePatterns: [
|
|
||||||
|
const eslintConfig = [
|
||||||
|
...compat.extends("next/core-web-vitals", "next/typescript"),
|
||||||
|
{
|
||||||
|
ignores: [
|
||||||
".next/**",
|
".next/**",
|
||||||
"out/**",
|
"out/**",
|
||||||
"build/**",
|
"build/**",
|
||||||
"next-env.d.ts",
|
"next-env.d.ts",
|
||||||
],
|
],
|
||||||
});
|
},
|
||||||
|
];
|
||||||
|
|
||||||
export default eslintConfig;
|
export default eslintConfig;
|
||||||
|
|||||||
@ -8,6 +8,10 @@ const nextConfig = {
|
|||||||
unoptimized: true, // Required for static export (no Next.js image server)
|
unoptimized: true, // Required for static export (no Next.js image server)
|
||||||
},
|
},
|
||||||
|
|
||||||
|
eslint: {
|
||||||
|
ignoreDuringBuilds: true,
|
||||||
|
},
|
||||||
|
|
||||||
// NOTE: async headers() is NOT supported with output:"export"
|
// NOTE: async headers() is NOT supported with output:"export"
|
||||||
// Cache-Control headers must be set at the web server level (nginx/Apache/CDN).
|
// Cache-Control headers must be set at the web server level (nginx/Apache/CDN).
|
||||||
// Recommended nginx config for production:
|
// Recommended nginx config for production:
|
||||||
|
|||||||
@ -6,7 +6,8 @@
|
|||||||
"dev": "next dev",
|
"dev": "next dev",
|
||||||
"build": "next build",
|
"build": "next build",
|
||||||
"start": "next start",
|
"start": "next start",
|
||||||
"export": "next export",
|
"export": "npm run build",
|
||||||
|
"serve:static": "npx serve out",
|
||||||
"lint": "eslint",
|
"lint": "eslint",
|
||||||
"sitemap": "node scripts/generate-sitemap.cjs",
|
"sitemap": "node scripts/generate-sitemap.cjs",
|
||||||
"seo-audit": "node scripts/seo-test-selenium.cjs"
|
"seo-audit": "node scripts/seo-test-selenium.cjs"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user