diff --git a/README.md b/README.md index d673c279..b3559d1b 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,7 @@ See [TESTING.md](test-playwright/TESTING.md) for detailed test instructions. Application icons are in the `assets` directory, processed by the `capacitor-assets` command. -To add a Font Awesome icon, add to main.ts and reference with `font-awesome` element and `icon` attribute with the hyphenated name. +To add a Font Awesome icon, add to fontawesome.ts and reference with `font-awesome` element and `icon` attribute with the hyphenated name. ## Other diff --git a/vite.config.common.mts b/vite.config.common.mts index 6b238be9..355c377f 100644 --- a/vite.config.common.mts +++ b/vite.config.common.mts @@ -6,7 +6,9 @@ import path from "path"; import { fileURLToPath } from 'url'; // Load environment variables -dotenv.config(); +console.log('NODE_ENV:', process.env.NODE_ENV) +dotenv.config({ path: `.env.${process.env.NODE_ENV}` }) + const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename);