Skip to content

Commit

Permalink
Remove PWA features because caching is too hard
Browse files Browse the repository at this point in the history
  • Loading branch information
oskarrough committed Dec 20, 2024
1 parent e1ae101 commit e8783ff
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 121 deletions.
32 changes: 1 addition & 31 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import {defineConfig} from 'astro/config'
import preact from '@astrojs/preact'
import AstroPWA from '@vite-pwa/astro'

// https://astro.build/config
export default defineConfig({
Expand All @@ -12,36 +11,7 @@ export default defineConfig({
},
integrations: [
preact(),
AstroPWA({
registerType: 'autoUpdate',
devOptions: {
enabled: false,
},
// The actual webmanifest
manifest: {
name: 'Slay the Web',
short_name: 'Slay the Web',
description:
'a singleplayer, deck builder, roguelike card crawl game for the web based on Slay the Spire',
start_url: '/index.html',
display: 'fullscreen',
orientation: 'landscape',
background_color: '#116f54',
theme_color: '#116f54',
icons: [
{
src: '/images/favicons/favicon-192.png',
sizes: '192x192',
type: 'image/png',
},
{
src: '/images/favicons/favicon-512.png',
sizes: '512x512',
type: 'image/png',
},
],
},
}),

// sentry({
// dsn: 'https://8dfaea3ae774cfc8d9a79fdac78b2c5d@o4506580528529408.ingest.sentry.io/4506580555268096',
// sourceMapsUploadOptions: {
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
},
"dependencies": {
"@astrojs/preact": "4.0.0",
"@vite-pwa/astro": "^0.4.3",
"driver.js": "^1.3.1",
"gsap": "^3.12.5",
"htm": "^3.1.1",
Expand Down
37 changes: 0 additions & 37 deletions src/ui/components/ReloadPrompt.astro

This file was deleted.

48 changes: 0 additions & 48 deletions src/ui/components/pwa.ts

This file was deleted.

4 changes: 0 additions & 4 deletions src/ui/layouts/Layout.astro
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
---
import {pwaInfo} from 'virtual:pwa-info'
import ReloadPrompt from '../components/ReloadPrompt.astro'
// import '../styles/index.css'
interface Props {
Expand All @@ -24,7 +22,6 @@ const {title} = Astro.props
<meta name="mobile-web-app-capable" content="yes" />
<meta name="theme-color" content="#116f54" />
<meta name="msapplication-TileColor" content="#116f54" />
{pwaInfo && <Fragment set:html={pwaInfo.webManifest.linkTag} />}
<link rel="icon" type="image/png" href="/images/favicons/favicon-512.png" sizes="512x512" />
<link rel="shortcut icon" href="/images/favicons/favicon.ico" />
<link rel="apple-touch-icon" href="/images/favicon-512.png" />
Expand Down Expand Up @@ -57,6 +54,5 @@ const {title} = Astro.props
</head>
<body>
<slot />
<ReloadPrompt />
</body>
</html>

0 comments on commit e8783ff

Please sign in to comment.