fix error
This commit is contained in:
@@ -15,8 +15,8 @@ services:
|
||||
- "traefik.http.routers.nextapp.tls.certresolver=myresolver"
|
||||
- "traefik.http.services.nextapp.loadbalancer.server.port=3000"
|
||||
networks:
|
||||
- traefik-net
|
||||
- services
|
||||
|
||||
networks:
|
||||
traefik-net:
|
||||
services:
|
||||
external: true
|
||||
|
||||
1
global.d.ts
vendored
Normal file
1
global.d.ts
vendored
Normal file
@@ -0,0 +1 @@
|
||||
declare module 'next-pwa';
|
||||
@@ -9,6 +9,7 @@
|
||||
"lint": "eslint"
|
||||
},
|
||||
"dependencies": {
|
||||
"jalaali-js": "^1.2.6",
|
||||
"chart.js": "^4.5.0",
|
||||
"next": "15.5.4",
|
||||
"next-pwa": "^5.6.0",
|
||||
|
||||
@@ -47,7 +47,7 @@ export type PagedResult<T> = {
|
||||
pageSize: number
|
||||
}
|
||||
|
||||
const API_BASE = process.env.NEXT_PUBLIC_API_URL ?? 'http://localhost:5064'
|
||||
const API_BASE = process.env.NEXT_PUBLIC_API_URL ?? 'https://ghback.nabaksoft.ir'
|
||||
|
||||
async function http<T>(url: string, init?: RequestInit): Promise<T> {
|
||||
const res = await fetch(url, { ...init, headers: { 'Content-Type': 'application/json', ...(init?.headers || {}) } })
|
||||
|
||||
@@ -22,6 +22,6 @@
|
||||
"@/*": ["./src/*"]
|
||||
}
|
||||
},
|
||||
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
|
||||
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts", "global.d.ts"],
|
||||
"exclude": ["node_modules"]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user