File tree Expand file tree Collapse file tree 2 files changed +1
-16
lines changed
Expand file tree Collapse file tree 2 files changed +1
-16
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ import type { ProjectConfig } from "../types";
88export async function setupAuth (
99 projectDir : string ,
1010 enableAuth : boolean ,
11- hasDatabase : boolean ,
1211 options : ProjectConfig ,
1312) : Promise < void > {
1413 const serverDir = path . join ( projectDir , "packages/server" ) ;
@@ -19,15 +18,6 @@ export async function setupAuth(
1918 return ;
2019 }
2120
22- if ( ! hasDatabase ) {
23- log . warn (
24- pc . yellow (
25- "Authentication enabled but no database selected. Auth will not function properly." ,
26- ) ,
27- ) ;
28- return ;
29- }
30-
3121 const envPath = path . join ( serverDir , ".env" ) ;
3222 const templateEnvPath = path . join (
3323 PKG_ROOT ,
Original file line number Diff line number Diff line change @@ -70,12 +70,7 @@ export async function createProject(options: ProjectConfig): Promise<string> {
7070 options . turso ?? options . database === "sqlite" ,
7171 ) ;
7272
73- await setupAuth (
74- projectDir ,
75- options . auth ,
76- options . database !== "none" ,
77- options ,
78- ) ;
73+ await setupAuth ( projectDir , options . auth , options ) ;
7974
8075 if ( options . git ) {
8176 await $ ( { cwd : projectDir } ) `git init` ;
You can’t perform that action at this time.
0 commit comments