Update API

This commit is contained in:
2022-12-25 23:51:44 +01:00
parent f85bd13765
commit a1d81986c6
4 changed files with 13 additions and 3 deletions
+1 -1
View File
@@ -1,2 +1,2 @@
VITE_APP_API_URL=https://stacjownik-api-b9mrc.ondigitalocean.app/api
VITE_APP_API_URL=https://spythere.pl/api
VITE_APP_SWDR_URL=https://api.td2.info.pl:9640
File diff suppressed because one or more lines are too long
+9
View File
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -15,10 +15,10 @@ export default defineConfig({
globPatterns: ['**/*.{js,css,html,png,svg,img}'],
runtimeCaching: [
{
urlPattern: /^https:\/\/stacjownik-api-b9mrc\.ondigitalocean\.app\/api\/getSceneries/i,
urlPattern: /^https:\/\/spythere.pl\/\/api\/getSceneries/i,
handler: 'CacheFirst',
options: {
cacheName: 'sceneries-data-cache',
cacheName: 'sceneries-cache',
expiration: {
maxEntries: 250,
maxAgeSeconds: 60 * 60 * 24 * 7, // <== 7 days