Update button IDs and API URL
- Added IDs to buttons in `NewBookingStep5.vue` for better UI automation. - Removed IDs from buttons in `MyBookingsBook.vue`. - Updated API URL from `truckwash.dk` to `truckwash.io`. - Disabled service worker `devOptions` in `vite.config.js`.
This commit is contained in:
+2
-2
@@ -63,7 +63,7 @@ export default defineConfig(({ mode }) => {
|
||||
injectRegister: 'auto',
|
||||
strategies: 'generateSW',
|
||||
devOptions: {
|
||||
enabled: true // keep for local dev
|
||||
enabled: false // keep for local dev
|
||||
},
|
||||
workbox: {
|
||||
maximumFileSizeToCacheInBytes: 12 * 1024 * 1024,
|
||||
@@ -75,7 +75,7 @@ export default defineConfig(({ mode }) => {
|
||||
runtimeCaching: [
|
||||
{
|
||||
// cache API responses
|
||||
urlPattern: ({ url }) => url.origin === 'https://api.truckwash.dk',
|
||||
urlPattern: ({ url }) => url.origin === 'https://api.truckwash.io',
|
||||
handler: 'NetworkFirst',
|
||||
options: {
|
||||
cacheName: 'pleno-api-cache',
|
||||
|
||||
Reference in New Issue
Block a user