apex / apex/up

Dynamic app static serving of index.html files

Offen
#636 8 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Feature Request
Vorherrschende Sprache
Go
Sterne
8.8k
Forks
383
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

## Prerequisites

* [x] I am running the latest version. (`up upgrade`)
* [x] I searched to see if the issue already exists.
* [x] I inspected the verbose debug output with the `-v, --verbose` flag.
* [ ] Are you an Up Pro subscriber?

## Description

I have a node.js app with a `public` directory containing index.html - however visiting `/` does not serve index.html. All the other files in my `public` directory are served fine.

My up.json looks like this:

```
{
"name": "test-app",
"static": {
"dir": "public"
}
}
```

If I add `"type": "static"` to my config, index.html is served fine

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.