From 7dc3cc30aaeb68b9266fffd65c3d39a277197027 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Tue, 20 Sep 2022 16:18:57 +0800 Subject: Pass WASM (& JS) build dir as JavaScript directory --- main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'main.c') diff --git a/main.c b/main.c index 248e5b1..97be7a1 100644 --- a/main.c +++ b/main.c @@ -11,8 +11,11 @@ int main(int argc, char *argv[]) static const char *index_rel = "/frontend/index.html"; char index[app_dir_len + strlen(index_rel) + 1]; sprintf(index, "%s%s", APP_DIR, index_rel); + static const char *js_dir_rel = "/frontend/build"; + char js_dir[app_dir_len + strlen(js_dir_rel) + 1]; + sprintf(js_dir, "%s%s", APP_DIR, js_dir_rel); shopify_app(API_KEY, API_SECRET_KEY, APP_URL, "/auth", APP_ID, scopes, - index, (struct shopify_api[]){ + index, js_dir, (struct shopify_api[]){ { "/products", "GET", -- cgit v1.2.3