mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-26 17:16:11 -05:00
Update environment defaults
This commit is contained in:
parent
b466e53a8a
commit
0bfd6e1430
3 changed files with 6 additions and 3 deletions
|
@ -35,10 +35,10 @@ npm stop
|
||||||
|
|
||||||
| Variable | Default | Description |
|
| Variable | Default | Description |
|
||||||
| ------------- | ------------------------------------- | ---------------------------------------------- |
|
| ------------- | ------------------------------------- | ---------------------------------------------- |
|
||||||
| `API_HOST` | `https://api-staging.scratch.mit.edu` | Hostname for API requests |
|
| `API_HOST` | `https://api.scratch.mit.edu` | Hostname for API requests |
|
||||||
| `NODE_ENV` | `null` | If not `production`, app acts like development |
|
| `NODE_ENV` | `null` | If not `production`, app acts like development |
|
||||||
| `PORT` | `8333` | Port for devserver (http://localhost:XXXX) |
|
| `PORT` | `8333` | Port for devserver (http://localhost:XXXX) |
|
||||||
| `PROXY_HOST` | `https://staging.scratch.mit.edu` | Pass-through location for scratchr2 |
|
| `PROXY_HOST` | `https://scratch.mit.edu` | Pass-through location for scratchr2 |
|
||||||
|
|
||||||
### To Test
|
### To Test
|
||||||
```bash
|
```bash
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
// Bind environment
|
||||||
|
api_host: process.env.API_HOST || 'https://api.scratch.mit.edu',
|
||||||
|
|
||||||
// Search and metadata
|
// Search and metadata
|
||||||
title: 'Imagine, Program, Share',
|
title: 'Imagine, Program, Share',
|
||||||
description:
|
description:
|
||||||
|
|
|
@ -67,7 +67,7 @@ if (typeof process.env.SENTRY_DSN === 'string') {
|
||||||
|
|
||||||
// Bind proxies in development
|
// Bind proxies in development
|
||||||
if (process.env.NODE_ENV !== 'production') {
|
if (process.env.NODE_ENV !== 'production') {
|
||||||
var proxyHost = process.env.PROXY_HOST || 'https://staging.scratch.mit.edu';
|
var proxyHost = process.env.PROXY_HOST || 'https://scratch.mit.edu';
|
||||||
|
|
||||||
app.use('/', proxy(proxyHost, {
|
app.use('/', proxy(proxyHost, {
|
||||||
filter: function (req) {
|
filter: function (req) {
|
||||||
|
|
Loading…
Reference in a new issue