Merge pull request #4 from Spythere/development

Update API
This commit is contained in:
Spythere
2022-12-26 18:44:40 +01:00
committed by GitHub
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