mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-24 00:39:32 +09:00
Update vite.config.local-dev.ts
This commit is contained in:
parent
d92860643d
commit
c2b897354f
@ -15,6 +15,7 @@ const { port } = yaml.load(await readFile('../../.config/default.yml', 'utf-8'))
|
|||||||
|
|
||||||
const httpUrl = `http://localhost:${port}/`;
|
const httpUrl = `http://localhost:${port}/`;
|
||||||
const websocketUrl = `ws://localhost:${port}/`;
|
const websocketUrl = `ws://localhost:${port}/`;
|
||||||
|
const embedUrl = `http://localhost:5174/`;
|
||||||
|
|
||||||
// activitypubリクエストはProxyを通し、それ以外はViteの開発サーバーを返す
|
// activitypubリクエストはProxyを通し、それ以外はViteの開発サーバーを返す
|
||||||
function varyHandler(req: IncomingMessage) {
|
function varyHandler(req: IncomingMessage) {
|
||||||
@ -52,6 +53,7 @@ const devConfig: UserConfig = {
|
|||||||
'/favicon.ico': httpUrl,
|
'/favicon.ico': httpUrl,
|
||||||
'/robots.txt': httpUrl,
|
'/robots.txt': httpUrl,
|
||||||
'/embed.js': httpUrl,
|
'/embed.js': httpUrl,
|
||||||
|
'/embed': embedUrl,
|
||||||
'/identicon': {
|
'/identicon': {
|
||||||
target: httpUrl,
|
target: httpUrl,
|
||||||
rewrite(path) {
|
rewrite(path) {
|
||||||
|
Loading…
Reference in New Issue
Block a user