Skip to content
Source
Sign inSign up
samwillis/jerry
Open History to see the last commit

neon.ts

23 lines729 Bytes

1import { defineConfig } from "@neon/config/v1";
2const origin = process.env.JOL_ORIGIN!;
3export default defineConfig({
4 auth: true,
5 preview: { realtime: { allowedOrigins: [origin] } },
6 buckets: { "jol-photos": { access: "private" } },
7 functions: {
8 jol: {
9 name: "Jerry On Line",
10 source: "dist/index.mjs",
11 bundler: "none",
12 env: {
13 JOL_ORIGIN: origin,
14 JOL_INSTANCE_ID: process.env.JOL_INSTANCE_ID!,
15 JOL_OAUTH_CLIENT_ID: process.env.JOL_OAUTH_CLIENT_ID!,
16 JOL_PHOTO_BUCKET: "jol-photos",
17 NEON_REALTIME_URL: process.env.NEON_REALTIME_URL!,
18 NEON_REALTIME_SECRET: process.env.NEON_REALTIME_SECRET!,
19 NODE_ENV: "production",
20 },
21 },
22 },
23});