This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import type { PrismaClient } from '@prisma/client' | |
// See https://kit.svelte.dev/docs/types#app | |
// for information about these interfaces | |
declare global { | |
namespace App { | |
// interface Error {} | |
// interface Locals {} | |
// interface PageData {} | |
// interface Platform {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { PrismaClient } from '@prisma/client' | |
// Avoid instantiating too many instances of Prisma in development | |
// https://www.prisma.io/docs/support/help-articles/nextjs-prisma-client-dev-practices#problem | |
let prisma: PrismaClient | |
if (process.env.NODE_ENV === 'production') { | |
prisma = new PrismaClient() | |
} else { | |
if (!global.prisma) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
generator client { | |
provider = "prisma-client-js" | |
} | |
datasource db { | |
provider = "postgresql" | |
url = env("DATABASE_URL") | |
} | |
model users { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Livewire App</title> | |
@livewireStyles | |
</head> | |
<body> | |
Livewire App | |
@livewireScripts | |
</body> |