Skip to content

Commit d3c1620

Browse files
author
bskimball
committed
added Auth
added ORM I'm sure the code could be cleaned up especially around the middlewares but it seems to be working.
1 parent 348054e commit d3c1620

28 files changed

+5577
-2247
lines changed

astro.config.mjs

+19
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,23 @@ export default defineConfig({
88
integrations: [react(), tailwind()],
99
output: 'server',
1010
adapter: node({ mode: 'middleware' }),
11+
security: {
12+
checkOrigin: true,
13+
},
14+
prefetch: {
15+
prefetchAll: true,
16+
},
17+
vite: {
18+
optimizeDeps: {
19+
exclude: ['oslo', '@node-rs/argon2', '@node-rs/bcrypt'],
20+
},
21+
server: {
22+
proxy: {
23+
'/trpc': {
24+
target: 'http://localhost:8080',
25+
ws: true
26+
}
27+
}
28+
}
29+
},
1130
})

drizzle.config.js

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { defineConfig } from 'drizzle-kit'
2+
3+
/** @type { import("drizzle-kit").Config } */
4+
export default defineConfig({
5+
schema: './src/schema.ts',
6+
dialect: 'sqlite',
7+
dbCredentials: {
8+
url: './data.db',
9+
},
10+
out: './drizzle',
11+
})

0 commit comments

Comments
 (0)