arcanajs 2.2.1 → 2.2.2
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.
|
@@ -298,13 +298,13 @@ export default function HomePage() {
|
|
|
298
298
|
</div>
|
|
299
299
|
<div className="text-white">npm run dev</div>
|
|
300
300
|
</div>
|
|
301
|
-
<div>
|
|
301
|
+
<div className="mb-4">
|
|
302
302
|
<div className="text-gray-500 mb-1">
|
|
303
303
|
# Build for production
|
|
304
304
|
</div>
|
|
305
305
|
<div className="text-white">npm run build</div>
|
|
306
306
|
</div>
|
|
307
|
-
<div>
|
|
307
|
+
<div className="mb-4">
|
|
308
308
|
<div className="text-gray-500 mb-1">
|
|
309
309
|
# Start production server
|
|
310
310
|
</div>
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { ArcanaJSServer } from "arcanajs/server";
|
|
2
2
|
import webRoutes from "./routes/web";
|
|
3
3
|
|
|
4
|
+
const PORT = process.env.PORT || 3000;
|
|
5
|
+
|
|
4
6
|
const server = new ArcanaJSServer({
|
|
7
|
+
port: PORT,
|
|
5
8
|
routes: webRoutes,
|
|
6
9
|
});
|
|
7
10
|
|
|
8
|
-
const PORT = process.env.PORT || 3000;
|
|
9
|
-
|
|
10
11
|
server.start();
|