From d9f6c5fa36cae81ecd6b8025d11c36eb8db17eb3 Mon Sep 17 00:00:00 2001 From: James Date: Mon, 18 Dec 2023 14:16:33 -0500 Subject: [PATCH] Add support for .env --- .env.example | 4 ++++ .gitignore | 1 + package-lock.json | 14 +++++++++++++- package.json | 3 ++- 4 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 .env.example diff --git a/.env.example b/.env.example new file mode 100644 index 00000000..c243f648 --- /dev/null +++ b/.env.example @@ -0,0 +1,4 @@ +# This is an example of what your env file should look like. +# You can copy this file and rename it to .env and fill in the values. + +PROJECT_HOSTNAME=example.com diff --git a/.gitignore b/.gitignore index 6a330b0e..6f76a921 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,7 @@ node_modules /package .env .env.* +*.local !.env.example vite.config.js.timestamp-* vite.config.ts.timestamp-* diff --git a/package-lock.json b/package-lock.json index 30682741..49740582 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,7 +8,8 @@ "name": "pic-sure-frontend", "version": "0.0.1", "dependencies": { - "@floating-ui/dom": "1.5.3" + "@floating-ui/dom": "1.5.3", + "dotenv": "^16.3.1" }, "devDependencies": { "@playwright/test": "^1.28.1", @@ -2070,6 +2071,17 @@ "node": ">=6.0.0" } }, + "node_modules/dotenv": { + "version": "16.3.1", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.3.1.tgz", + "integrity": "sha512-IPzF4w4/Rd94bA9imS68tZBaYyBWSCE47V1RGuMrB94iyTOIEwRmVL2x/4An+6mETpLrKJ5hQkB8W4kFAadeIQ==", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/motdotla/dotenv?sponsor=1" + } + }, "node_modules/electron-to-chromium": { "version": "1.4.614", "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.614.tgz", diff --git a/package.json b/package.json index 6c8ae658..6e462952 100644 --- a/package.json +++ b/package.json @@ -45,6 +45,7 @@ }, "type": "module", "dependencies": { - "@floating-ui/dom": "1.5.3" + "@floating-ui/dom": "1.5.3", + "dotenv": "^16.3.1" } }