ini tambahannya
This commit is contained in:
@@ -33,7 +33,16 @@ import prisma from '@/lib/prisma';
|
||||
}
|
||||
|
||||
console.log("potensi success ...")
|
||||
})().then(() => prisma.$disconnect()).catch((e) => {
|
||||
console.error(e)
|
||||
prisma.$disconnect()
|
||||
});
|
||||
|
||||
process.on('exit', () => {
|
||||
prisma.$disconnect()
|
||||
})
|
||||
|
||||
|
||||
})();
|
||||
process.on('SIGINT', () => {
|
||||
prisma.$disconnect()
|
||||
process.exit(0)
|
||||
})
|
||||
@@ -1,6 +1,6 @@
|
||||
import Content1 from "@/com/main-page/content-1";
|
||||
import Content2 from "@/com/main-page/content-2";
|
||||
import Content3 from "@/com/main-page/content-3";
|
||||
import Content3 from "@/com/main-page/layanan";
|
||||
import Content4 from "@/com/main-page/content-4";
|
||||
import Content5 from "@/com/main-page/content-5";
|
||||
import Content6 from "@/com/main-page/content-6";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
|
||||
import { AppServer } from '@/app/api/[[...slugs]]/route'
|
||||
import { treaty } from '@elysiajs/eden'
|
||||
const ApiFetch = treaty<AppServer>(process.env.NEXT_PUBLIC_HOST || 'localhost:3000')
|
||||
const ApiFetch = treaty<AppServer>(Bun.env.NEXT_PUBLIC_WIBU_URL || 'localhost:3000')
|
||||
|
||||
export default ApiFetch
|
||||
6
types/bun.ts
Normal file
6
types/bun.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
declare module "bun" {
|
||||
interface Env {
|
||||
PORT: string;
|
||||
NEXT_PUBLIC_WIBU_URL: string;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user