Skip to content

Commit

Permalink
Add container project init to package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
nathandf committed Jun 26, 2024
1 parent 64780fc commit 82b8975
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@
"lint": "eslint --max-warnings=0 . && prettier --single-quote --check src",
"prettier": "prettier --single-quote --write .",
"gh-pages": "tsc && vite build && gh-pages -d build",
"init-project": "chmod +x ./scripts/init-project.sh && ./scripts/init-project.sh"
"init-project": "chmod +x ./scripts/init-project.sh && ./scripts/init-project.sh",
"init-project-container": "chmod +x ./scripts/init-project-container.sh && ./scripts/init-project-container.sh"
},
"eslintConfig": {
"extends": []
Expand Down
7 changes: 4 additions & 3 deletions src/extensions/useExtension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ import { resolveBasePath } from 'utils/resolveBasePath';
const useExtension = () => {
const { extensions } = useContext(ExtensionsContext);
let basePath = resolveBasePath();
if (basePath == 'https://dev.develop.tapis.io') {
basePath = 'https://icicleai.tapis.io';
}
// TODO Add logic to toggle between baseUrls iff in a local environment
// if (basePath == 'https://dev.develop.tapis.io') {
// basePath = 'https://icicleai.tapis.io';
// }

let extension = undefined;
let extensionName = undefined;
Expand Down

0 comments on commit 82b8975

Please sign in to comment.