This repository has been archived by the owner on Jan 7, 2025. It is now read-only.
generated from Telegram-Mini-Apps/solidjs-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
27 additions
and
20 deletions.
There are no files selected for viewing
This file contains 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,33 @@ | ||
// import { readFileSync } from 'node:fs'; | ||
import { dirname, resolve } from 'node:path'; | ||
import { fileURLToPath } from 'node:url'; | ||
|
||
import { defineConfig } from 'vite'; | ||
import solidPlugin from 'vite-plugin-solid'; | ||
// import basicSsl from '@vitejs/plugin-basic-ssl'; | ||
|
||
export default defineConfig({ | ||
base: '/solidjs-js-template/', | ||
base: '/solidjs-js-template', | ||
plugins: [ | ||
/* | ||
Uncomment the following line to enable solid-devtools. | ||
For more info see https://github.com/thetarnav/solid-devtools/tree/main/packages/extension#readme | ||
*/ | ||
// Uncomment the following line to enable solid-devtools. | ||
// For more info see https://github.com/thetarnav/solid-devtools/tree/main/packages/extension#readme | ||
// devtools(), | ||
solidPlugin(), | ||
// Allows using self-signed certificates to run the dev server using HTTPS. | ||
// https://www.npmjs.com/package/@vitejs/plugin-basic-ssl | ||
// basicSsl(), | ||
], | ||
// Uncomment the next lines in case, you would like to run Vite dev server using HTTPS and in case, | ||
// you have key and certificate. You retrieve your certificate and key using mkcert. | ||
// Learn more: | ||
// https://docs.telegram-mini-apps.com/platform/getting-app-link#mkcert | ||
// | ||
// server: { | ||
// port: 443, | ||
// https: { | ||
// cert: readFileSync(resolve(dirname(fileURLToPath(import.meta.url)), './tma.internal.pem')), | ||
// key: readFileSync(resolve(dirname(fileURLToPath(import.meta.url)), './tma.internal-key.pem')), | ||
// }, | ||
// host: 'tma.internal', | ||
// }, | ||
build: { | ||
target: 'esnext', | ||
}, | ||
publicDir: './public', | ||
server: { | ||
// Uncomment this line if you want to expose your dev server and access it from the devices | ||
// in the same network. | ||
// host: true, | ||
}, | ||
resolve: { | ||
alias: { | ||
'@': resolve(dirname(fileURLToPath(import.meta.url)), './src'), | ||
} | ||
}, | ||
publicDir: './public', | ||
}); |