update: URL api

This commit is contained in:
2023-03-09 13:41:59 +01:00
parent 68934a89a4
commit 0434702d3b
2 changed files with 5 additions and 2 deletions
+3 -1
View File
@@ -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',
};
+2 -1
View File
@@ -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({
});