1
0
mirror of synced 2026-02-05 06:00:08 -05:00

Compare commits

...

5 Commits

Author SHA1 Message Date
Dillon Raphael
1aadb6203f Merge branch 'main' into fix-find-db 2022-10-27 10:19:36 -04:00
Dillon Raphael
7e63fcc0a7 Merge branch 'fix-find-db' of github.com:blitz-js/blitz into fix-find-db 2022-10-27 10:00:15 -04:00
Dillon Raphael
1c55944c27 revert template path 2022-10-27 09:58:42 -04:00
Dillon Raphael
1f09c13b11 Create pink-eggs-sleep.md 2022-10-25 11:28:37 -04:00
Dillon Raphael
cc61d7ebdc set absolute path for db in blitz-server 2022-10-25 11:16:07 -04:00
3 changed files with 7 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
"@blitzjs/generator": patch
---
Fix Error: Cannot find module 'db' when running blitz generate for a javascript project.

View File

@@ -2,7 +2,7 @@ import { setupBlitzServer } from '@blitzjs/next';
import { AuthServerPlugin, PrismaStorage } from '@blitzjs/auth';
import { simpleRolesIsAuthorized } from '@blitzjs/auth';
import { BlitzLogger } from 'blitz';
import db from 'db';
import db from '../db';
import { authConfig } from './blitz-client';
export const { gSSP, gSP, api } = setupBlitzServer({

1
pnpm-lock.yaml generated
View File

@@ -18442,6 +18442,7 @@ packages:
typescript: 4.6.3
v8-compile-cache-lib: 3.0.1
yn: 3.1.1
dev: false
/ts-node/10.7.0_typescript@4.6.3:
resolution: