Now has all of the functions as the Astro site.
Signed-off-by: Louis Hollingworth <louis@hollingworth.ch>
This commit is contained in:
parent
2e98cb39f4
commit
f9e7e5480c
12 changed files with 2618 additions and 3316 deletions
|
|
@ -1,9 +1,8 @@
|
|||
import mongoose from 'mongoose';
|
||||
const runtimeConfig = useRuntimeConfig();
|
||||
import {Nitro} from 'nitropack';
|
||||
import { PrismaClient } from '@prisma/client';
|
||||
import { Nitro } from 'nitropack';
|
||||
|
||||
const prisma = new PrismaClient();
|
||||
|
||||
export default async (_nitroApp: Nitro) => {
|
||||
mongoose.connect(runtimeConfig.mongoUri)
|
||||
.then(() => console.log('connected to db'))
|
||||
.catch(err => console.log('error connecting to db', err));
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue