Created
October 25, 2022 20:24
-
-
Save jeremynikolic/d6d45b2d043703fc9168c82672bf5072 to your computer and use it in GitHub Desktop.
Laravel + Vite + Laradock (Windows host) [October 2022]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
workspace: | |
... | |
ports: | |
... | |
- "${WORKSPACE_VITE_PORT:5173}:5173" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[...] | |
import basicSsl from "@vitejs/plugin-basic-ssl"; | |
const host = 'laraevl.test'; // URL used to access your Laradocked site from windows | |
export default defineConfig({ | |
server: { | |
https: true, | |
host: '0.0.0.0', | |
hmr: { | |
host | |
}, | |
}, | |
plugins: [ | |
basicSsl(), | |
[...] | |
] | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment