Skip to content

Commit

Permalink
fix(dev): make sure local development continues to work
Browse files Browse the repository at this point in the history
  • Loading branch information
hutchic committed Jul 19, 2024
1 parent 5584dac commit 6db99ba
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 6 deletions.
15 changes: 9 additions & 6 deletions app/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,30 +13,30 @@ export default defineNuxtConfig({
description: 'An app for sharing a boat among a pre-defined set of users via a Google Calendar backend.',
lang: 'en',
display: 'standalone',
scope: '/boat-share/',
start_url: '/boat-share/',
scope: process.env.BASE_URL || '/',
start_url: process.env.BASE_URL || '/',
background_color: '#ffffff',
theme_color: '#4DBA87',
icons: [
{
src: '/boat-share/icons/50.png',
src: `${process.env.BASE_URL || ''}/icons/50.png`,
sizes: '50x50',
type: 'image/png'
},
{
src: '/boat-share/icons/192.png',
src: `${process.env.BASE_URL || ''}/icons/192.png`,
sizes: '192x192',
type: 'image/png'
},
{
src: '/boat-share/icons/512.png',
src: `${process.env.BASE_URL || ''}/icons/512.png`,
sizes: '512x512',
type: 'image/png'
},
]
},
workbox: {
navigateFallback: 'https://hutchic-org.github.io/boat-share/'
navigateFallback: `${process.env.BASE_URL || ''}/`
},
client: {
installPrompt: true
Expand All @@ -57,5 +57,8 @@ export default defineNuxtConfig({
}
}
},
app: {
baseURL: process.env.BASE_URL || '/',
},
compatibilityDate: '2024-07-03',
})
8 changes: 8 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,11 @@ services:
NUXI_DISABLE_VITE_HMR: true
command: npm run dev
container_name: nuxt_app

ngrok:
image: ngrok/ngrok
environment:
NGROK_AUTHTOKEN: ${NGROK_AUTHTOKEN}
command: http --domain=boatapp.ngrok.dev nuxt:3000
ports:
- "4040:4040"

0 comments on commit 6db99ba

Please sign in to comment.