Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
canifa_note
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vũ Hoàng Anh
canifa_note
Commits
5b6b2f05
Unverified
Commit
5b6b2f05
authored
Sep 28, 2023
by
Athurg Gooth
Committed by
GitHub
Sep 28, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: apiv2 failed in container (#2307)
parent
fbbfb119
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
grpcweb.ts
web/src/grpcweb.ts
+1
-3
vite.config.ts
web/vite.config.ts
+4
-0
No files found.
web/src/grpcweb.ts
View file @
5b6b2f05
...
...
@@ -5,10 +5,8 @@ import { SystemServiceDefinition } from "./types/proto/api/v2/system_service";
import
{
TagServiceDefinition
}
from
"./types/proto/api/v2/tag_service"
;
import
{
UserServiceDefinition
}
from
"./types/proto/api/v2/user_service"
;
const
address
=
import
.
meta
.
env
.
MODE
===
"development"
?
"http://localhost:8081"
:
window
.
location
.
origin
;
const
channel
=
createChannel
(
address
,
window
.
location
.
origin
,
FetchTransport
({
credentials
:
"include"
,
})
...
...
web/vite.config.ts
View file @
5b6b2f05
...
...
@@ -19,6 +19,10 @@ export default defineConfig({
target
:
devProxyServer
,
xfwd
:
true
,
},
"^/memos.api.v2"
:
{
target
:
devProxyServer
,
xfwd
:
true
,
},
"^/o/"
:
{
target
:
devProxyServer
,
xfwd
:
true
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment