Skip to content

Commit

Permalink
Updates react-icons and moves to now.json (patch)
Browse files Browse the repository at this point in the history
  • Loading branch information
zrrrzzt committed Apr 18, 2019
1 parent 8b9e49f commit 67e022c
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 16 deletions.
6 changes: 6 additions & 0 deletions .nowignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.github
.next
node_modules
.travis.yml
renovate.json
out
2 changes: 1 addition & 1 deletion components/Map.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Component, Fragment } from 'react'
import getConfig from 'next/config'
import { Link } from '../components/alheimsins'
import ReactMapGL, { Marker, Popup } from 'react-map-gl'
import { FaCircle, FaInfoCircle } from 'react-icons/lib/fa'
import { FaCircle, FaInfoCircle } from 'react-icons/fa'
import stylesheet from 'mapbox-gl/dist/mapbox-gl.css'
import getData from '../lib/get-data'

Expand Down
2 changes: 1 addition & 1 deletion components/alheimsins/Radio.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Component } from 'react'
import PropTypes from 'prop-types'
import { MdRadioButtonChecked, MdRadioButtonUnchecked } from 'react-icons/lib/md'
import { MdRadioButtonChecked, MdRadioButtonUnchecked } from 'react-icons/md'

export default class Radio extends Component {
render () {
Expand Down
6 changes: 3 additions & 3 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ const withCSS = require('@zeit/next-css')
module.exports = {
useFileSystemPublicRoutes: false,
publicRuntimeConfig: {
URL: process.env.URL || 'https://s3.eu-central-1.amazonaws.com/luftstatus/data.json',
URL_STATIONS: process.env.URL_STATIONS || 'https://s3.eu-central-1.amazonaws.com/luftstatus/stations.json',
URL_AREAS: process.env.URL_AREAS || 'https://s3.eu-central-1.amazonaws.com/luftstatus/areas.json',
URL: process.env.URL || 'https://api.luftstatus.no/data',
URL_STATIONS: process.env.URL_STATIONS || 'https://api.luftstatus.no/stations',
URL_AREAS: process.env.URL_AREAS || 'https://api.luftstatus.no/areas',
TOKEN: process.env.TOKEN || '<INSERT-YOUR-MAPBOX-TOKEN>'
},
...withCSS(withOffline())
Expand Down
16 changes: 16 additions & 0 deletions now.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"version": 1,
"name": "luftstatus",
"alias": [
"luftstatus.no"
],
"env": {
"NODE_ENV": "production",
"URL": "https://api.luftstatus.no/data",
"URL_STATIONS": "https://api.luftstatus.no/stations",
"URL_AREAS": "https://api.luftstatus.no/areas",
"TOKEN": "@mapbox_token"

},
"type": "npm"
}
8 changes: 0 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,6 @@
"nyc": "14.0.0",
"standard": "12.0.1"
},
"now": {
"name": "luftstatus",
"alias": "luftstatus.no",
"type": "npm",
"engines": {
"node": ">=10.0.0"
}
},
"dotenv": "production.env",
"standard": {
"ignore": [
Expand Down
2 changes: 1 addition & 1 deletion pages/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Fragment } from 'react'
import { FaCircle } from 'react-icons/lib/fa'
import { FaCircle } from 'react-icons/fa'
import { Layout, Link } from '../components/alheimsins'
import getConfig from 'next/config'
import getData from '../lib/get-data'
Expand Down
2 changes: 1 addition & 1 deletion pages/sone.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Fragment } from 'react'
import getData from '../lib/get-data'
import getConfig from 'next/config'
import { Layout, Link } from '../components/alheimsins'
import { FaCircle } from 'react-icons/lib/fa'
import { FaCircle } from 'react-icons/fa'
const { publicRuntimeConfig: { URL } } = getConfig()
const capitalize = text => text ? text.charAt(0).toUpperCase() + text.slice(1) : false

Expand Down
2 changes: 1 addition & 1 deletion pages/stasjon.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Fragment } from 'react'
import getData from '../lib/get-data'
import getConfig from 'next/config'
import { Layout } from '../components/alheimsins'
import { FaCircle } from 'react-icons/lib/fa'
import { FaCircle } from 'react-icons/fa'
const { publicRuntimeConfig: { URL_STATIONS } } = getConfig()

const Station = ({ data }) => (
Expand Down

0 comments on commit 67e022c

Please sign in to comment.