sst 2.24.8 → 2.24.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "sideEffects": false,
3
3
  "name": "sst",
4
- "version": "2.24.8",
4
+ "version": "2.24.10",
5
5
  "bin": {
6
6
  "sst": "cli/sst.js"
7
7
  },
package/project.js CHANGED
@@ -115,14 +115,13 @@ export async function initProject(globals) {
115
115
  }
116
116
  }
117
117
  })();
118
- dotenv.config({
119
- path: path.join(project.paths.root, `.env.${project.config.stage}`),
120
- override: true,
121
- });
122
- dotenv.config({
123
- path: path.join(project.paths.root, `.env.${project.config.stage}.local`),
124
- override: true,
125
- });
118
+ // Load .env files
119
+ [
120
+ path.join(project.paths.root, `.env`),
121
+ path.join(project.paths.root, `.env.local`),
122
+ path.join(project.paths.root, `.env.${project.config.stage}`),
123
+ path.join(project.paths.root, `.env.${project.config.stage}.local`),
124
+ ].forEach((path) => dotenv.config({ path, override: true }));
126
125
  Logger.debug("Config loaded", project);
127
126
  }
128
127
  async function usePersonalStage(out) {