-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
moving back to simple pure JS, too gnarly to mix the TS and JS
- Loading branch information
Showing
3 changed files
with
13 additions
and
487 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,17 @@ | ||
import express from 'express' | ||
import * as proxy from '../src/setupProxy' | ||
// This file runs a simple production web server of the React production build | ||
// it reuses setupProxy.js for consistent use of backend modules in dev and prod. | ||
// This is plain JS rather than our TS setup in the React app because of that. | ||
// | ||
/* eslint-disable */ | ||
/* istanbul ignore file */ | ||
|
||
const express = require('express') | ||
const proxy = require('../src/setupProxy') | ||
|
||
const app = express() | ||
const port = 3000 | ||
|
||
proxy(app) | ||
app.use('/', express.static('../build')) | ||
|
||
// eslint-disable-next-line no-console | ||
app.listen(port, () => console.log(`BMD listening on port ${port}!`)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.