From 0434702d3b25d081bfd59bca8c1b1b62929014b8 Mon Sep 17 00:00:00 2001 From: Spythere Date: Thu, 9 Mar 2023 13:41:59 +0100 Subject: [PATCH] update: URL api --- src/scripts/utils/apiURLs.ts | 4 +++- vite.config.ts | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/scripts/utils/apiURLs.ts b/src/scripts/utils/apiURLs.ts index 5c10567..3edf3bb 100644 --- a/src/scripts/utils/apiURLs.ts +++ b/src/scripts/utils/apiURLs.ts @@ -1,5 +1,7 @@ export const URLs = { stacjownikAPI: - import.meta.env.VITE_APP_API_DEV == 1 && !import.meta.env.PROD ? 'http://localhost:3000' : 'https://spythere.pl', + import.meta.env.VITE_APP_API_DEV == 1 && !import.meta.env.PROD + ? 'http://localhost:3000' + : 'https://stacjownik.spythere.pl', stacjownikAPIDev: 'localhost:3000', }; diff --git a/vite.config.ts b/vite.config.ts index d76787a..d59c8e3 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -15,7 +15,7 @@ export default defineConfig({ globPatterns: ['**/*.{js,css,html,png,svg,jpg}'], runtimeCaching: [ { - urlPattern: new RegExp('^https://spythere.pl/api/getSceneries', 'i'), + urlPattern: new RegExp('^https://stacjownik.spythere.pl/api/getSceneries', 'i'), handler: 'NetworkFirst', options: { cacheName: 'sceneries-cache', @@ -52,3 +52,4 @@ export default defineConfig({ }); +