Answer the question
In order to leave comments, you need to log in
How to host VK Mini Apps on a server?
Hello! Help deploy the VK MINI APPS template on the server. The purpose of this action:
I want to immediately develop on the server and see the result. In order not to suffer with the transfer of files back and forth. I hope for your understanding.
I can't go to IP. just a white screen.
Answer the question
In order to leave comments, you need to log in
You need a VPS and an ssl certificate
1) Create a folder on the server where the user cannot reach and create an application template there
npx @vkontakte/create-vk-mini-app /home/username/vkapp/project_name
....
"scripts": {
"start": "cross-env PORT=5000 HTTPS=true SSL_CRT_FILE=./local-certificate/ssl.crt SSL_KEY_FILE=./local-certificate/ssl.key react-scripts start",
"build": "react-scripts build",
"predeploy": "npm run build",
"deploy": "vk-miniapps-deploy"
},
....
npm start
https://domain.ltd:5000
. Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question