Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Astro rewrite #17

Merged
merged 7 commits into from
Jul 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .env.development
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#PUBLIC_WS_URL=ws://localhost:8080
PUBLIC_WS_URL=""
3 changes: 0 additions & 3 deletions .eslintrc.json

This file was deleted.

43 changes: 4 additions & 39 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,39 +1,4 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js
.yarn/install-state.gz

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env*

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts

deploy.sh
public/*.js
node_modules
dist
.env
.astro
23 changes: 23 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import react from "@astrojs/react";
import AstroPWA from "@vite-pwa/astro";
import { defineConfig } from "astro/config";
import manifest from "./manifest.json";

// https://astro.build/config
export default defineConfig({
integrations: [react(), AstroPWA({ manifest })],
prefetch: true,
vite: {
// this is needed because there's issue in vite regarding importing worker files
// https://github.com/vitejs/vite/issues/8427
optimizeDeps: {
exclude: ["@lofik/react"],
},
},
server: {
headers: {
"cross-origin-embedder-policy": "require-corp",
"cross-origin-opener-policy": "same-origin",
},
},
});
File renamed without changes.
31 changes: 0 additions & 31 deletions next.config.mjs

This file was deleted.

Loading