This file contains hidden or 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 { drizzle as drizzleBuilder } from 'drizzle-orm/postgres-js' | |
import postgres from 'postgres' | |
import type { DBConnection, DBTransaction, Row } from '@rocicorp/zero/pg' | |
// drizzle schema | |
import * as schema from './schema' | |
// build your drizzle client instance as per usual | |
const drizzle = drizzleBuilder( | |
postgres(DB_CONNECTION_STRING, /* options... */), |
This file contains hidden or 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
/// <reference path="./.sst/platform/config.d.ts" /> | |
const BASE_DOMAIN_CERT_ARN = | |
'<cert ARN in AWS for your domain>' | |
const buildServiceDomainName = (slug: string) => { | |
// build whatever domain you like | |
const baseDomain = `${$app.stage}.mydomain.com` | |
return `${slug}.${baseDomain}` | |
} |