Skip to content

Commit

Permalink
Add baseUrl to Render
Browse files Browse the repository at this point in the history
  • Loading branch information
smeubank authored Nov 5, 2024
1 parent a706473 commit 1f077aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/ProductsPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ import ProductCard from '../components/ProductCard.vue'
const products = ref([])
onMounted(async () => {
// const baseUrl = 'https://vue-store-pinia.onrender.com';
const baseUrl = 'http://localhost:8000';
const baseUrl = 'https://vue-store-pinia.onrender.com';
// const baseUrl = 'http://localhost:8000';
const response = await fetch(`${baseUrl}/products`);
const data = await response.json();
products.value = data.map(product => ({
Expand Down

0 comments on commit 1f077aa

Please sign in to comment.