Allow hot file host to be configured#169
Closed
nurdism wants to merge 2 commits into
Closed
Conversation
Member
|
Hi @nurdism, Thanks for the PR. You can completely control the hot file by specifying the server configuration. The following shows you how to control the protocol, host, and port that ends up in the hot file. import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';
export default defineConfig({
plugins: [
laravel({
input: ['resources/css/app.css', 'resources/js/app.js'],
refresh: true,
}),
],
server: {
https: true,
host: 'foo.test',
port: '8080',
}
});I understand that you may have got this sorted and are looking to make it easier, however I personally would prefer to not add another way to control this - at least for now. Thanks again. |
Contributor
Author
|
@timacdonald opened issue #178 to explain further |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In my dev container solution I am running the whole thing behind a reverse proxy and proxying
/@vite*,/node_modules*&/resources*to the running vite instance. I've been running into is not being able to force this plugin to either not specify a host or to force it to use a host. This option is optional and allows you to specify a host rather than attempting to figure it out.