From b3358023f17b316c55d26133eb870f05747099e4 Mon Sep 17 00:00:00 2001 From: Malar Kannan Date: Fri, 3 Aug 2018 21:57:25 +0530 Subject: [PATCH] static serving under path --- .env.development | 4 ++-- public/{toast => }/config.json | 0 public/{toast => }/data.csv | 0 public/{toast => }/manifest.json | 0 src/index.tsx | 4 ++-- 5 files changed, 4 insertions(+), 4 deletions(-) rename public/{toast => }/config.json (100%) rename public/{toast => }/data.csv (100%) rename public/{toast => }/manifest.json (100%) diff --git a/.env.development b/.env.development index c728da4..e2c96a1 100644 --- a/.env.development +++ b/.env.development @@ -1,2 +1,2 @@ -REACT_APP_API_HOST="http://localhost:3000/toast/" -REACT_APP_API_DIR="/toast/" +REACT_APP_API_HOST="http://localhost:3000/" +REACT_APP_API_DIR="/" diff --git a/public/toast/config.json b/public/config.json similarity index 100% rename from public/toast/config.json rename to public/config.json diff --git a/public/toast/data.csv b/public/data.csv similarity index 100% rename from public/toast/data.csv rename to public/data.csv diff --git a/public/toast/manifest.json b/public/manifest.json similarity index 100% rename from public/toast/manifest.json rename to public/manifest.json diff --git a/src/index.tsx b/src/index.tsx index a7b1306..d489dde 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -2,10 +2,10 @@ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import App from './App'; import './index.css'; -import registerServiceWorker from './registerServiceWorker'; +// import registerServiceWorker from './registerServiceWorker'; ReactDOM.render( , document.getElementById('root') as HTMLElement ); -registerServiceWorker(); +// registerServiceWorker();