Comments (5)
Actually it seams a bit deeper problem. I just tested and figure out browser not allowing connection to the Vite dev server via httpS without certificate.
Will try to find solution.
In the mean time I recommend reverting all settings (and yoursitedomain.local) to http not httpS, and everything should work fine.
from wp-theme-vite-tailwind.
Hi @kkemila,
Please pull the latest version, I've just added https=true option to the vite.config.js and update packages to the latest. Note: run npm install after pulling from the repo
Thanks for trying the theme and reporting the issue, and please let me know does it solve the problem. :)
from wp-theme-vite-tailwind.
One more thing...
Please edit functions.php and set VITE_SERVER to httpS also, I missed that in this push.
define('VITE_SERVER', 'https://localhost:3000');
from wp-theme-vite-tailwind.
I've added solution tips in latest version. Basically certificate need to be generated for serving Vite localhost dev and properly configured.
I did test but please let me know does it work for you.
Thanks
From readme.md
If your local development domain is served via https:// then generating certificate for localhost usage and some changes in config are required
- install mkcert utility and follow the instructions how to generate & install certificate https://github.com/FiloSottile/mkcert
- example on Windows 10 (PowerShell as Administrator)
# install mkcert
choco install mkcert
# global one time install
mkcert -install
# run in project/theme folder to create localhost-key.pem & localhost.pem
mkcert localhost
- enable server.https option in vite.config.js
- change VITE_SERVER to https in your functions.php
from wp-theme-vite-tailwind.
So https will work with a certificate like described above, I will close it.
from wp-theme-vite-tailwind.
Related Issues (15)
- Production Mode / Build did't work well HOT 3
- Failed to decode downloaded font HOT 2
- Unexpected token '*' HOT 4
- "This 127.0.0.1 page canβt be found" when visiting http://127.0.0.1:3000/
- Accessing dev site through localhost:3000
- Build does not work on fresh install HOT 1
- Auto reload not working HOT 3
- Showing css background images during dev HOT 3
- How to include a vue3 app in this theme ? HOT 1
- Security - functions.php and inc.vite.php HOT 2
- after NPM run dev HOT 2
- how to deal with CSS Images ? HOT 5
- remote server hmr
- Access to local installation from external device HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wp-theme-vite-tailwind.