juxscript 1.0.22 ā 1.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/machinery/server.js +4 -4
- package/package.json +1 -1
package/machinery/server.js
CHANGED
|
@@ -118,9 +118,9 @@ async function serve(port = 3000, distDir = './jux-dist') {
|
|
|
118
118
|
|
|
119
119
|
export async function start(port = 3000, pageName = null) {
|
|
120
120
|
const app = express();
|
|
121
|
-
|
|
121
|
+
|
|
122
122
|
// ...existing code for static files...
|
|
123
|
-
|
|
123
|
+
|
|
124
124
|
// If pageName specified, redirect root to that page
|
|
125
125
|
if (pageName) {
|
|
126
126
|
app.get('/', (req, res) => {
|
|
@@ -128,9 +128,9 @@ export async function start(port = 3000, pageName = null) {
|
|
|
128
128
|
});
|
|
129
129
|
console.log(`šÆ Root (/) redirects to /${pageName}`);
|
|
130
130
|
}
|
|
131
|
-
|
|
131
|
+
|
|
132
132
|
// ...existing code...
|
|
133
|
-
|
|
133
|
+
|
|
134
134
|
app.listen(port, () => {
|
|
135
135
|
console.log(`\nš JUX dev server running`);
|
|
136
136
|
console.log(` Local: http://localhost:${port}${pageName ? '/' + pageName : ''}`);
|