Skip to content

Commit

Permalink
Use /quinoa as base path for codestart
Browse files Browse the repository at this point in the history
  • Loading branch information
ia3andy committed Aug 29, 2024
1 parent 41e92a9 commit d7b79ef
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,8 @@ public boolean verify(String hostname, SSLSession session) {
connection.setReadTimeout(2000);
connection.connect();
int code = connection.getResponseCode();
return code == 200 ? ipAddress : null;
// in both cases the server is started, for 404 it might be started on another path
return (code == 200 || code == 404) ? ipAddress : null;
} catch (ConnectException | SocketTimeoutException e) {
// Try the next address
} catch (IOException e) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/
counter.js
quinoa.html
index.html
main.js
package-lock.json
package.json
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ quarkus:
package-manager-install:
~: true
node-version: 20.10.0
dev-server:
check-path: /quinoa.html
ui-root-path: quinoa
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
"dev": "vite --base=/quinoa",
"build": "vite build --base=/quinoa",
"preview": "vite preview --base=/quinoa"
},
"devDependencies": {
"vite": "^5.3.4"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ type: code
tags: extension-codestart
metadata:
title: Quinoa
description: This is a tiny webpack app to get started with Quinoa. It generates a quinoa.html page and a script.
path: /quinoa.html
description: Quinoa codestart added a tiny Vite app in src/main/webui. The page is configured to be visible on <a href="/quinoa">/quinoa</a>.
path: /quinoa
related-guide-section: https://quarkiverse.github.io/quarkiverse-docs/quarkus-quinoa/dev/index.html

0 comments on commit d7b79ef

Please sign in to comment.