• Joe Haddad's avatar
    Add `PUBLIC_URL` env variable for advanced use (#937) (#1504) · 613b584f
    Joe Haddad authored
    * Add `PUBLIC_URL` env variable for advanced use (#937)
    * Add support for `PUBLIC_URL` env variable
    * Remove unnecessary duplications
    * Simplify served path choice logic
    * Honor PUBLIC_URL in development
    * Add e2e tests
    
    Enables serving static assets from specified host.
    613b584f
PublicUrl.test.js 269 bytes
import React from 'react';
import ReactDOM from 'react-dom';
import PublicUrl from './PublicUrl';
describe('PUBLIC_URL', () => {
  it('renders without crashing', () => {
    const div = document.createElement('div');
    ReactDOM.render(<PublicUrl />, div);
  });
});