Skip to content

Commit

Permalink
Merge pull request #33 from AwkwardLiSFan/7-automate-deployment
Browse files Browse the repository at this point in the history
fix: typescript compilation errors in ci
  • Loading branch information
AwkwardLiSFan authored Oct 26, 2023
2 parents 3a6275a + 496b6c5 commit b3a440c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/assets/scripts/setEnv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ const { argv } = require("yargs");
require("dotenv").config();
const environment = argv.environment;

function writeFileUsingFS(targetPath, environmentFileContent) {
writeFile(targetPath, environmentFileContent, function (err) {
function writeFileUsingFS(targetPath: any, environmentFileContent: any) {
writeFile(targetPath, environmentFileContent, function (err: any) {
if (err) {
console.log(err);
}
Expand Down Expand Up @@ -43,7 +43,7 @@ const environmentFileContent = `
// This file was autogenerated by dynamically running setEnv.ts and using dotenv for managing API key secrecy
export const environment = {
production: ${isProduction},
APP_ID: '${process.env.APP_ID}'
APP_ID: '${process.env["APP_ID"]}'
};
`;

Expand Down

0 comments on commit b3a440c

Please sign in to comment.