remove netlify

This commit is contained in:
Lee 2023-10-17 22:02:46 +01:00
parent cc884eec07
commit b9c8e5e8a1
4 changed files with 9 additions and 76 deletions

4
.gitignore vendored

@ -2,6 +2,4 @@
.vscode
node_modules
public/build
build-info.js
# Local Netlify folder
.netlify
build-info.js

@ -1,11 +1,8 @@
# ScoreSaber Reloaded
[![Netlify Status](https://api.netlify.com/api/v1/badges/38bf7c3a-dbfb-428b-9ff7-3fc86ef68f23/deploy-status)](https://app.netlify.com/sites/modest-morse-77235d/deploys)
## Users
Just go to [ssr.motzel.dev](https://ssr.motzel.dev)
Just go to [ssr.fascinated.cc](https://ssr.fascinated.cc)
## Devs
@ -15,35 +12,8 @@ Just go to [ssr.motzel.dev](https://ssr.motzel.dev)
yarn install
```
### Configure Netlify account
Create a new Netlify project and link it to the forked repo.
#### Install netlify dev CLI
### Start the dev environment
```bash
npm install netlify-cli -g
yarn dev
```
Then start Netlify dev environment
```bash
netlify dev
```
Navigate to [localhost:8888](http://localhost:8888). You should see app running.
### Building and running in production mode
By default, Netlify builds the app after every change to the master branch in the repository, so all you need is
```bash
git push
```
### ... but I don't use Netlify
Check your hosting provider's documentation.
Note that the project uses Netlify redirects to bypass CORS issues in the Beat Savior API and to fetch some of the ScoreSaber subpages (not all data is available in the SS API yet).
Check the contents of [netlify.toml](https://github.com/motzel/scoresaber-reloaded/blob/master/netlify.toml) and see how you can resolve this with your provider.

@ -1,35 +0,0 @@
[build]
publish = "public/"
[functions]
directory = "functions"
[[redirects]]
from = "/cors/beat-savior/*"
to = "https://www.beatsavior.io/api/livescores/player/:splat"
status = 200
force = true
headers = {X-From = "Netlify"}
[[redirects]]
from = "/cors/score-saber/*"
to = "https://www.scoresaber.com/:splat"
status = 200
force = true
headers = {X-From = "Netlify"}
[[redirects]]
from = '/build/*'
to = '/build/:splat'
status = 200
[[redirects]]
from = '/assets/*'
to = '/assets/:splat'
status = 200
[[redirects]]
from = "/*"
to = "/index.html"
status = 200
force = true

@ -1,7 +1,7 @@
export default {
name: 'ScoreSaber Reloaded',
domain: 'https://ssr.motzel.dev',
name: "ScoreSaber Reloaded",
domain: "https://ssr.motzel.dev",
leftSaberColor: 'rgba(168,32,32,1)',
rightSaberColor: 'rgba(32,100,168,1)'
}
leftSaberColor: "rgba(168,32,32,1)",
rightSaberColor: "rgba(32,100,168,1)",
};