Skip to content

Commit

Permalink
Add hosting configs for redirects, disabling Github comments from Vercel
Browse files Browse the repository at this point in the history
  • Loading branch information
sisou committed Nov 15, 2024
1 parent 0e6296a commit 90f335c
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
4 changes: 4 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[[redirects]]
from = "/*"
to = "/index.html"
status = 200
1 change: 0 additions & 1 deletion public/_redirects

This file was deleted.

8 changes: 8 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"rewrites": [
{ "source": "/*", "destination": "/index.html" }
],
"github": {
"silent": true
}
}
4 changes: 1 addition & 3 deletions vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,9 +240,7 @@ module.exports = {

const warnings = [];

const manifest = originalManifest.filter(entry => {
return entry.url.substring(1) !== '_redirects';
}).map(entry => {
const manifest = originalManifest.map(entry => {
const assetName = entry.url.substring(1);
const asset = compilation.getAsset(assetName);

Expand Down

0 comments on commit 90f335c

Please sign in to comment.