GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add .env support & moving from index.js · nullstack/nullstack@964df8b

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • package.json
  • server
    • index.js
  • tests
    • .env
    • .gitignore
    • index.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎package.json‎

Copy file name to clipboardExpand all lines: package.json
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"body-parser": "^1.19.0",
2323
"cors": "^2.8.5",
2424
"css-loader": "^3.4.2",
25+
"dotenv": "^8.2.0",
2526
"express": "^4.17.1",
2627
"ignore-loader": "^0.1.2",
2728
"mini-css-extract-plugin": "^0.9.0",
Collapse file

‎server/index.js‎

Copy file name to clipboardExpand all lines: server/index.js
+1-2Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
2-
1+
import 'dotenv/config';
32
import context from './context';
43
import server from './server';
54
import registry from './registry';
Collapse file

‎tests/.env‎

Copy file name to clipboard
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
NULLSTACK_SECRETS_KEY = 'secrets'
2+
NULLSTACK_SECRETS_CAMELIZED_KEY = 'secrets'
3+
NULLSTACK_SETTINGS_KEY = 'settings'
4+
NULLSTACK_SETTINGS_CAMELIZED_KEY = 'settings'
Collapse file

‎tests/.gitignore‎

Copy file name to clipboardExpand all lines: tests/.gitignore
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ node_modules/
22
.development/
33
.production/
44
package-lock.json
5-
yarn.lock
5+
yarn.lock
6+
# .env # never forget to add this in real life
Collapse file

‎tests/index.js‎

Copy file name to clipboardExpand all lines: tests/index.js
-7Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
if(typeof process !== 'undefined') {
2-
process.env.NULLSTACK_SECRETS_KEY = 'secrets';
3-
process.env.NULLSTACK_SECRETS_CAMELIZED_KEY = 'secrets';
4-
process.env.NULLSTACK_SETTINGS_KEY = 'settings';
5-
process.env.NULLSTACK_SETTINGS_CAMELIZED_KEY = 'settings';
6-
}
7-
81
import Nullstack from 'nullstack';
92
import Application from './src/Application';
103

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.