Can Laragon Host Single Page APP e.g Next.js, Vuejs, Reactjs e.tc #610
Replies: 3 comments 2 replies
-
Yes. Easily even.
|
Beta Was this translation helpful? Give feedback.
-
Am still having trouble with this, can you show a live example |
Beta Was this translation helpful? Give feedback.
-
Use localhost for development
ℹ Laragon runs on localhost - pretty urls too I use Vite/SvelteKit, pass the SSL certificates and HTTPS works too. vite.config.js - to use https://spa.local:5173import { sveltekit } from '@sveltejs/kit/vite'
import { defineConfig } from 'vitest/config'
import fs from 'fs'
export default defineConfig({
plugins: [sveltekit()],
server: {
host: 'spa.local',
hmr: {
host: 'localhost',
},
watch: {
usePolling: true,
},
https: {
key: fs.readFileSync('C:/laragon/etc/ssl/laragon.key'),
cert: fs.readFileSync('C:/laragon/etc/ssl/laragon.crt'),
},
},
test: {
include: ['src/**/*.{test,spec}.{js,ts}'],
},
}) |
Beta Was this translation helpful? Give feedback.
-
Good Morning Team, Please can someone kindly guide me on how to host a Single Page App build Like .next folder for nextjs or build folder for Reactjs.
Beta Was this translation helpful? Give feedback.
All reactions