Skip to content
This repository has been archived by the owner on Nov 24, 2021. It is now read-only.

Proposed static app #6

Merged
merged 3 commits into from
Sep 12, 2019
Merged

Proposed static app #6

merged 3 commits into from
Sep 12, 2019

Conversation

simonswiss
Copy link
Collaborator

Not fussed about the copy or styles, I just tried to make the first version of the static app work, and look decent.

It's a good start, I guess!

@MadeByMike
Copy link
Contributor

@simonswiss This is so good :)

@@ -0,0 +1,41 @@
(function() {
// API URL
const apiUrl = `${window.location.href}admin/api`;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is correct only if they haven't changed the defaults. 99% wont and especially when using the 1 click deploy. It would however be possible to get the actual URL. To do this we'd have to not use the staticApp and get the URL on the server-side before rendering the page.

We should probably capture this in an issue but this is good for now.

@MadeByMike MadeByMike merged commit d54b0f6 into master Sep 12, 2019
@MadeByMike MadeByMike deleted the static-app branch October 31, 2019 05:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants