Skip to content

Commit

Permalink
wiring up Netlify
Browse files Browse the repository at this point in the history
  • Loading branch information
troygoode committed May 28, 2019
1 parent f878b4e commit 3a8f82b
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -17,3 +17,4 @@ node_modules

.next
.webpack
out/
2 changes: 2 additions & 0 deletions README.md
Expand Up @@ -2,6 +2,8 @@

A test application that helps illustrate CORS while both in a working state and a non-working state across simple and complex request scenarios.

[![node-cors-client](https://api.netlify.com/api/v1/badges/a374a315-b8e8-4554-9146-10fd6ffbbfc8/deploy-status)](https://app.netlify.com/sites/tender-ride-ab7fbe/deploys)

## See Also

* https://node-cors-client.herokuapp.com/
Expand Down
2 changes: 1 addition & 1 deletion components/example.js
@@ -1,7 +1,7 @@
import { useState } from "react";
import fetch from "isomorphic-unfetch";

const baseUrl = "http://localhost:3001" || process.env.BASE_URL;
const baseUrl = "http://localhost:3001" || process.env.NEXT_STATIC_BASE_URL;

const styles = {
idle: {
Expand Down
5 changes: 5 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Expand Up @@ -4,8 +4,9 @@
"private": true,
"scripts": {
"dev": "next",
"build": "next build",
"start": "next start",
"build": "next build",
"export": "npm run build && next export",
"prettier": "prettier --write {components,pages}/**/*.js"
},
"engines": {
Expand All @@ -15,6 +16,7 @@
"dependencies": {
"isomorphic-unfetch": "^3.0.0",
"next": "^8.1.0",
"next-env": "^1.1.0",
"react": "^16.8.6",
"react-dom": "^16.8.6"
},
Expand Down

0 comments on commit 3a8f82b

Please sign in to comment.