Skip to content
Source
Sign inSign up
samwillis/one-million-boxes
Open History to see the last commit

neon.ts

16 lines508 Bytes

1import { defineConfig } from "@neon/config/v1"
2​
3export default defineConfig({
4 // Realtime is a preview service. Applying this policy enables it and sets the
5 // exact browser origins used by local development and the deployed game.
6 preview: {
7 realtime: {
8 allowedOrigins: [
9 "http://127.0.0.1:5173",
10 "http://localhost:5173",
11 "https://one-million-boxes.vercel.app",
12 ],
13 },
14 },
15 branch: (branch) => (!branch.isDefault && !branch.exists ? { ttl: "7d" } : {}),
16})