Skip to content

Commit

Permalink
Add API key
Browse files Browse the repository at this point in the history
  • Loading branch information
RonanCodes committed May 3, 2024
1 parent 71333e3 commit dd69a43
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,5 @@ Thumbs.db
.nx/cache
.angular

misc/
misc/
.env
31 changes: 24 additions & 7 deletions project.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,22 @@
"targets": {
"build": {
"executor": "@angular-devkit/build-angular:application",
"outputs": ["{options.outputPath}"],
"outputs": [
"{options.outputPath}"
],
"options": {
"outputPath": "dist/movie-search",
"index": "./src/index.html",
"browser": "./src/main.ts",
"polyfills": ["zone.js"],
"polyfills": [
"zone.js"
],
"tsConfig": "./tsconfig.app.json",
"inlineStyleLanguage": "scss",
"assets": ["./src/favicon.ico", "./src/assets"],
"assets": [
"./src/favicon.ico",
"./src/assets"
],
"styles": [
"@angular/material/prebuilt-themes/purple-green.css",
"./src/styles.scss"
Expand All @@ -42,7 +49,13 @@
"development": {
"optimization": false,
"extractLicenses": false,
"sourceMap": true
"sourceMap": true,
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.development.ts"
}
]
}
},
"defaultConfiguration": "production"
Expand All @@ -68,12 +81,16 @@
"lint": {
"executor": "@nx/eslint:lint",
"options": {
"lintFilePatterns": ["./src"]
"lintFilePatterns": [
"./src"
]
}
},
"test": {
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectName}"],
"outputs": [
"{workspaceRoot}/coverage/{projectName}"
],
"options": {
"jestConfig": "jest.config.ts"
}
Expand All @@ -88,4 +105,4 @@
}
}
}
}
}
5 changes: 5 additions & 0 deletions src/environments/environment.development.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// TODO: Hide secret
export const environment = {
production: false,
API_KEY: '354f3620f819bb22bd2bbe52ce8ec3dc',
};
5 changes: 5 additions & 0 deletions src/environments/environment.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// TODO: Hide secret
export const environment = {
production: true,
API_KEY: '354f3620f819bb22bd2bbe52ce8ec3dc',
};

0 comments on commit dd69a43

Please sign in to comment.