We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 60750d9 + 4d1a1f4 commit b98ce9bCopy full SHA for b98ce9b
src/bin/server.ts
@@ -1,5 +1,11 @@
1
#!/usr/bin/env node
2
+import fs from 'fs'
3
4
+if (!fs.existsSync('./.env')) {
5
+ throw new Error(
6
+ 'Missing env!!!\nCopy/rename ".env.example" root directory to ".env"'
7
+ )
8
+}
9
/**
10
* Module dependencies.
11
*/
0 commit comments