build: upgrade to v16.2.4
This commit is contained in:
@@ -19,7 +19,8 @@ async function jwennAwtis(slug) {
|
||||
return awtis
|
||||
}
|
||||
|
||||
export async function generateMetadata({params}) {
|
||||
export async function generateMetadata(props) {
|
||||
const params = await props.params;
|
||||
const {slug} = params
|
||||
const anAwtis = await jwennAwtis(slug)
|
||||
|
||||
@@ -62,7 +63,8 @@ export async function generateMetadata({params}) {
|
||||
}
|
||||
}
|
||||
|
||||
export default async function AwtisPajSlug({params}) {
|
||||
export default async function AwtisPajSlug(props) {
|
||||
const params = await props.params;
|
||||
const {slug} = params
|
||||
const anAwtis = await jwennAwtis(slug)
|
||||
|
||||
|
||||
+2
-1
@@ -58,7 +58,8 @@ async function jwennDone(paj) {
|
||||
return {pajTotal, awtisPouChakPaj, pajParsed}
|
||||
}
|
||||
|
||||
export default async function AwitsPaj({searchParams}) {
|
||||
export default async function AwitsPaj(props) {
|
||||
const searchParams = await props.searchParams;
|
||||
const {paj} = searchParams
|
||||
const {pajTotal, awtisPouChakPaj, pajParsed} = await jwennDone(paj || 1)
|
||||
|
||||
|
||||
@@ -20,7 +20,8 @@ async function jwennAnTeks(slug) {
|
||||
return teks
|
||||
}
|
||||
|
||||
export async function generateMetadata({params}) {
|
||||
export async function generateMetadata(props) {
|
||||
const params = await props.params;
|
||||
const {slug} = params
|
||||
|
||||
const anTeks = await jwennAnTeks(slug)
|
||||
@@ -65,7 +66,8 @@ export async function generateMetadata({params}) {
|
||||
}
|
||||
}
|
||||
|
||||
export default async function AnPawolPaj({params}) {
|
||||
export default async function AnPawolPaj(props) {
|
||||
const params = await props.params;
|
||||
const {slug} = params
|
||||
|
||||
const anTeks = await jwennAnTeks(slug)
|
||||
|
||||
@@ -13,7 +13,6 @@ import '@fontsource/roboto/500.css'
|
||||
import '@fontsource/roboto/700.css'
|
||||
import '../styles/nprogress.css'
|
||||
|
||||
import PlausibleProvider from 'next-plausible'
|
||||
import ChanjeTem from '../components/chanje-tem'
|
||||
import NextAppDirEmotionCacheProvider from './emotion-cache-provider'
|
||||
|
||||
@@ -70,7 +69,6 @@ export default function ThemeRegistry(props) {
|
||||
return (
|
||||
<>
|
||||
<InitColorSchemeScript attribute='class' />
|
||||
<PlausibleProvider domain='oki.re'>
|
||||
<NextAppDirEmotionCacheProvider options={{key: 'mui'}}>
|
||||
<ThemeProvider theme={theme}>
|
||||
<CssBaseline enableColorScheme />
|
||||
@@ -78,7 +76,6 @@ export default function ThemeRegistry(props) {
|
||||
{children}
|
||||
</ThemeProvider>
|
||||
</NextAppDirEmotionCacheProvider>
|
||||
</PlausibleProvider>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
import { dirname } from "path";
|
||||
import { fileURLToPath } from "url";
|
||||
import { FlatCompat } from "@eslint/eslintrc";
|
||||
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = dirname(__filename);
|
||||
|
||||
const compat = new FlatCompat({
|
||||
baseDirectory: __dirname,
|
||||
});
|
||||
|
||||
const eslintConfig = [
|
||||
...compat.extends("next/core-web-vitals"),
|
||||
{
|
||||
ignores: [
|
||||
"node_modules/**",
|
||||
".next/**",
|
||||
"out/**",
|
||||
"build/**",
|
||||
"next-env.d.ts",
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
export default eslintConfig;
|
||||
+1
-4
@@ -1,5 +1,3 @@
|
||||
const {withPlausibleProxy} = require('next-plausible')
|
||||
|
||||
const withPWA = require('next-pwa')({
|
||||
disable: process.env.NODE_ENV !== 'production',
|
||||
dest: 'public',
|
||||
@@ -7,7 +5,7 @@ const withPWA = require('next-pwa')({
|
||||
skipWaiting: true
|
||||
})
|
||||
|
||||
module.exports = withPlausibleProxy()(withPWA({
|
||||
module.exports = (withPWA({
|
||||
webpack: config => {
|
||||
config.module.rules.push({
|
||||
test: /\.svg$/,
|
||||
@@ -16,7 +14,6 @@ module.exports = withPlausibleProxy()(withPWA({
|
||||
|
||||
return config
|
||||
},
|
||||
swcMinify: true,
|
||||
images: {
|
||||
remotePatterns: [
|
||||
{
|
||||
|
||||
+6
-5
@@ -15,7 +15,7 @@
|
||||
},
|
||||
"scripts": {
|
||||
"lint": "xo",
|
||||
"dev": "next dev -p 3001",
|
||||
"dev": "next dev --turbopack -p 3001",
|
||||
"build": "next build",
|
||||
"start": "next start -p 3001"
|
||||
},
|
||||
@@ -38,22 +38,23 @@
|
||||
"express": "^4.17.1",
|
||||
"file-saver": "^2.0.5",
|
||||
"lodash": "^4.17.21",
|
||||
"next": "^14.1.4",
|
||||
"next": "16.2.4",
|
||||
"next-auth": "^4.22.1",
|
||||
"next-plausible": "^3.6.3",
|
||||
"next-pwa": "5.6.0",
|
||||
"nextjs-toploader": "^1.4.2",
|
||||
"nodemailer": "^6.7.2",
|
||||
"nprogress": "^0.2.0",
|
||||
"react": "^18.3.1",
|
||||
"react-dom": "^18.3.1",
|
||||
"react": "19.2.5",
|
||||
"react-dom": "19.2.5",
|
||||
"react-swipeable-views": "^0.13.9",
|
||||
"react-virtuoso": "^4.4.0",
|
||||
"sharp": "^0.29.3",
|
||||
"slugify": "^1.6.6"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@eslint/eslintrc": "^3",
|
||||
"eslint": "^8.7.0",
|
||||
"eslint-config-next": "16.2.4",
|
||||
"eslint-config-xo-nextjs": "^4.0.3",
|
||||
"eslint-plugin-react": "^7.28.0",
|
||||
"eslint-plugin-react-hooks": "^4.3.0",
|
||||
|
||||
Reference in New Issue
Block a user