Git Product home page Git Product logo

app-server's Introduction

npm version build status coverage status dependency status devDependency status

app-server

A tool to serve and apply runtime configuration to static apps.

This tool was created to allow create-react-app apps to be configured at runtime (serve-time) via environment variables, making them easily "dockerizable". It can however be used to serve and configure any static app.

Install

yarn add -D @staticdeploy/app-server

Guides

Reference documentation

app-server's People

Contributors

nitroin avatar pscanf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

thedemodev

app-server's Issues

change CRA "PUBLIC_URL" post build process

Hi,

your comment on facebook/create-react-app#2353 brought me here. I'm facing the problem that a client wants to serve ONE CRA build on different static server without using pipelines etc.. So the "PUBLIC_URL" would need to change post build based on a config file so the files can be server from the correct "static" folder.

You are writing

When serving the files, I also implemented some best-match redirects to allow the app base url (PUBLIC_URL) to be configured at runtime as well.

Could you please point me in the right direction? I can't find anything about "best-match redirects" in the docs.

Cheers

Non 404 on GET /baseUrlWithoutTrailingSlash

When baseUrl=/something/, GET /something returns the index file, instead of a 404. Then the index requests assets relative to /something, ie relative to /, and gets 404s, so the app is still broken.

It'd be better to either 404 GET /something, or redirect to /something/.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.