diff --git a/.gitignore b/.gitignore index 7c5db1c..bc20898 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,4 @@ .vscode node_modules public/build -build-info.js -# Local Netlify folder -.netlify \ No newline at end of file +build-info.js \ No newline at end of file diff --git a/README.md b/README.md index 277ba4c..d24cd92 100644 --- a/README.md +++ b/README.md @@ -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. \ No newline at end of file diff --git a/netlify.toml b/netlify.toml deleted file mode 100644 index 91b116a..0000000 --- a/netlify.toml +++ /dev/null @@ -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 \ No newline at end of file diff --git a/src/ssr-config.js b/src/ssr-config.js index 464b135..319a20e 100644 --- a/src/ssr-config.js +++ b/src/ssr-config.js @@ -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)' -} \ No newline at end of file + leftSaberColor: "rgba(168,32,32,1)", + rightSaberColor: "rgba(32,100,168,1)", +};