[F] Fix content type after nginx update
This commit is contained in:
+1
-1
@@ -9,7 +9,7 @@ location /__meowindex__ {
|
||||
alias /etc/nginx/MeowIndex/dist;
|
||||
|
||||
# Use sub_filter to configure the app
|
||||
sub_filter_types application/javascript;
|
||||
sub_filter_types application/javascript text/javascript;
|
||||
sub_filter_once off;
|
||||
sub_filter "{ASSETS-PATH-PLACEHOLDER}" "/__meowindex__";
|
||||
sub_filter "{DEPLOY-PATH-PLACEHOLDER}" $deploy_path;
|
||||
|
||||
+5
-1
@@ -33,7 +33,7 @@ let host = "{HOST-PLACEHOLDER}"
|
||||
// Default paths and host for testing
|
||||
if (assetsPath.includes("-PLACEHOLDER")) assetsPath = "/"
|
||||
if (deployPath.includes("-PLACEHOLDER")) deployPath = "/"
|
||||
if (host.includes("-PLACEHOLDER")) host = "https://daisy.hydev.org/data/api"
|
||||
if (host.includes("-PLACEHOLDER")) host = undefined
|
||||
|
||||
// Compute path
|
||||
let fullPath = window.location.pathname
|
||||
@@ -116,6 +116,10 @@ export default function App() {
|
||||
setBcLeft(Math.max(bcMax = Math.round(w.clientWidth - w.parentElement.clientWidth), 0))
|
||||
}, 100)
|
||||
|
||||
if (!host) return (<div class="min-h-full my-auto flex justify-center items-center">
|
||||
App is misconfigured. Please correct sub_filter.
|
||||
</div>)
|
||||
|
||||
return (
|
||||
// Full screen container
|
||||
<div class="p-2 text-sm bg-dark-800 color-main min-h-full lg:(p-10 text-base)">
|
||||
|
||||
Reference in New Issue
Block a user