Skip to content

Commit bdead82

Browse files
committed
refactor(env): add environment variable handling and update .gitignore
1 parent 26089ed commit bdead82

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

refine-vite/template/.env

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<%_ if (typeof _env !== 'undefined' && _env && _env.variables) { _%>
2+
<%- _env.variables.join("\n") %>
3+
<%_ } _%>

refine-vite/template/gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@ lerna-debug.log*
1111
node_modules
1212
dist
1313
dist-ssr
14-
\*.local
14+
*.local
15+
16+
# Environment variables
17+
.env
18+
.env.local
1519

1620
# Editor directories and files
1721

0 commit comments

Comments
 (0)