Closed alexhudson closed 4 years ago
@alexhudson if possible could you please share your repro app or the repository where we can take a look at the code?
I can't share the blog unfortunately, but I've managed to create a minimal case. The problem appears to be the Hugo config.toml:
baseURL = "http://example.org/"
languageCode = "en-us"
title = "My New Hugo Site"
theme = "ananke"
[params.plugins]
# CSS Plugins
[[params.plugins.css]]
URL = "plugins/bootstrap/bootstrap.min.css"
[params]
home = "Home"
This content as config.toml appears to confuse the parser. If I reorder it so the [params] section appears first, it works! Hugo appears to accept it either way; I'm not necessarily claiming it's valid TOML at this point (I don't know), but this was an existing working Hugo build.
So I at least have a workaround now!
@alexhudson Thanks for the details. We will try to see what can be done about it.
I have also countered with this issue. I have an .net core api and vuejs static web project. I was trying to create flow to publish static project through github. Projects are in same repo. Checked every file in ui project but i did not find any problem. Then, I tried to remove api location from flow file, wow, it works like a charm.
Not working:
app_location: "ticketpulse-ui"
api_location: "/"
app_artifact_location: "dist"
Working:
app_location: "ticketpulse-ui"
api_location: ""
app_artifact_location: "dist"
We've updated the toml file parser so that your minimal case should be considered as a valid toml file now. The update is in the latest release. Thanks for reporting the issue. We'll close this.
Bug Report
I created a new Hugo-based blog this morning, and am trying to deploy it via Azure Static Apps preview.
During the CI/CD, I get this response:
There seems to be an issue with the platform detection, but I don't seem to be able to enable Oryx debug mode to get a better backtrace, and there doesn't appear to be an obvious workaround. I'm not using Oryx to do the build - I have these steps setup:
... and the build process is working fine; I just need Oryx to do the upload step. Even overriding the app build command, it's still doing the platform detection and I get the same error.