remove netlify
This commit is contained in:
parent
cc884eec07
commit
b9c8e5e8a1
2
.gitignore
vendored
2
.gitignore
vendored
@ -3,5 +3,3 @@
|
|||||||
node_modules
|
node_modules
|
||||||
public/build
|
public/build
|
||||||
build-info.js
|
build-info.js
|
||||||
# Local Netlify folder
|
|
||||||
.netlify
|
|
36
README.md
36
README.md
@ -1,11 +1,8 @@
|
|||||||
# ScoreSaber Reloaded
|
# 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
|
## Users
|
||||||
|
|
||||||
Just go to [ssr.motzel.dev](https://ssr.motzel.dev)
|
Just go to [ssr.fascinated.cc](https://ssr.fascinated.cc)
|
||||||
|
|
||||||
|
|
||||||
## Devs
|
## Devs
|
||||||
|
|
||||||
@ -15,35 +12,8 @@ Just go to [ssr.motzel.dev](https://ssr.motzel.dev)
|
|||||||
yarn install
|
yarn install
|
||||||
```
|
```
|
||||||
|
|
||||||
### Configure Netlify account
|
### Start the dev environment
|
||||||
|
|
||||||
Create a new Netlify project and link it to the forked repo.
|
|
||||||
|
|
||||||
#### Install netlify dev CLI
|
|
||||||
|
|
||||||
```bash
|
```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.
|
|
35
netlify.toml
35
netlify.toml
@ -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 {
|
export default {
|
||||||
name: 'ScoreSaber Reloaded',
|
name: "ScoreSaber Reloaded",
|
||||||
domain: 'https://ssr.motzel.dev',
|
domain: "https://ssr.motzel.dev",
|
||||||
|
|
||||||
leftSaberColor: 'rgba(168,32,32,1)',
|
leftSaberColor: "rgba(168,32,32,1)",
|
||||||
rightSaberColor: 'rgba(32,100,168,1)'
|
rightSaberColor: "rgba(32,100,168,1)",
|
||||||
}
|
};
|
||||||
|
Reference in New Issue
Block a user