diff --git a/.github/workflows/flow.yaml b/.github/workflows/flow.yaml index 0dc05ea..22c54fb 100644 --- a/.github/workflows/flow.yaml +++ b/.github/workflows/flow.yaml @@ -41,7 +41,7 @@ jobs: - name: Install dependencies run: pnpm install - name: Build - run: pnpm run build + run: pnpm run build --base /opfs-demo/ - name: Setup Pages uses: actions/configure-pages@v3 - name: Upload artifact diff --git a/src/helpers.ts b/src/helpers.ts index d9d28d6..2586347 100644 --- a/src/helpers.ts +++ b/src/helpers.ts @@ -2,5 +2,6 @@ import { IFetchDb } from './db/types' export const dbFetch: IFetchDb = async (url, body) => { const response = await fetch(url, { body: JSON.stringify(body), method: 'POST' }) + if (response.status === 501) return return response.json() } diff --git a/vite.config.ts b/vite.config.ts index 5f500d6..b9dd51e 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -5,7 +5,6 @@ import rakkas from 'rakkasjs/vite-plugin' import { VitePWA } from 'vite-plugin-pwa' export default defineConfig({ - base: '/opfs-demo/', plugins: [ tsconfigPaths(), react(),