Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
dpS1lence committed Sep 7, 2024
1 parent fdafee7 commit 2ee1cd6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ jobs:
echo "VITE_PUBLIC_INSTANCE=$VITE_PUBLIC_INSTANCE" >> .env.production
echo "VITE_PUBLIC_SCOPES=$VITE_PUBLIC_SCOPES" >> .env.production
echo "VITE_STRIPE_PUBLISHABLE_KEY=$VITE_STRIPE_PUBLISHABLE_KEY" >> .env.production
echo "VITE_STRIPE_VALUE_PACK_ID=$VITE_STRIPE_VALUE_PACK_ID" >> .env.production
echo "VITE_STRIPE_BASIC_PACK_ID=$VITE_STRIPE_BASIC_PACK_ID" >> .env.production
echo "VITE_STRIPE_PRO_PACK_ID=$VITE_STRIPE_PRO_PACK_ID" >> .env.production
echo "VITE_STRIPE_SUBSCRIPTION_ID=$VITE_STRIPE_SUBSCRIPTION_ID" >> .env.production
npm run build
working-directory: ./src/client/CookingAppReact
env:
Expand All @@ -44,6 +48,10 @@ jobs:
VITE_PUBLIC_INSTANCE: ${{ secrets.VITE_PUBLIC_INSTANCE }}
VITE_PUBLIC_SCOPES: ${{ secrets.VITE_PUBLIC_SCOPES }}
VITE_STRIPE_PUBLISHABLE_KEY: ${{ secrets.VITE_STRIPE_PUBLISHABLE_KEY }}
VITE_STRIPE_VALUE_PACK_ID: ${{ secrets.VITE_STRIPE_VALUE_PACK_ID }}
VITE_STRIPE_PRO_PACK_ID: ${{ secrets.VITE_STRIPE_PRO_PACK_ID }}
VITE_STRIPE_VALUE_BASIC_ID: ${{ secrets.VITE_STRIPE_BASIC_PACK_ID }}
VITE_STRIPE_SUBSCRIPTION_ID: ${{ secrets.VITE_STRIPE_SUBSCRIPTION_ID }}

- name: Deploy to Azure Static Web Apps
id: builddeploy
Expand Down
5 changes: 0 additions & 5 deletions src/client/CookingAppReact/src/pages/store/Store.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ export default function Store() {
});
}
async function buyThisPack(id) {
console.log("id " + id);
const token = await getToken();
const decodedToken = jwtDecode(token);
payOneTime({
Expand All @@ -45,10 +44,6 @@ export default function Store() {
priceId: id,
});
}
console.log(subscriptionId);
console.log(basicPackId);
console.log(valuePackId);
console.log(proPackId);
return (
<div className="flex flex-col w-full h-full justify-start content-start items-start bg-secondary px-10 text-primaryText overflow-y-auto">
<div className="w-full flex flex-col justify-center items-center text-center mt-2 text-primaryText">
Expand Down
2 changes: 1 addition & 1 deletion src/server/CookingApp/Properties/launchSettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"ASPNETCORE_ENVIRONMENT": "Development"
},
"dotnetRunMessages": true,
"applicationUrl": "http://192.168.0.105:8000"
"applicationUrl": "http://192.168.100.221:8000"
},
"https": {
"commandName": "Project",
Expand Down

0 comments on commit 2ee1cd6

Please sign in to comment.