You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there an instruction how to run doccano under prefix? So no doccano.example.com and apps.example.com/doccanoinstead.
After some digging into codebase I've managed to run frontend under prefix by using router setting in nuxt.config.js:
router: {
base: '/doccano/'
},
Unfortunately, login doesn't work as it still sends request to /v1/auth/login.
I also tried changing PUBLIC_PATH, but due then files are put in different subdirectory inside frontent/client/dist which requires adapting Dockerfile.
I have I feeling that there's an easier way to achieve what I'm trying to achieve and I'm just doing something wrong 🤔
EDIT:
I went a little bit further with these nuxt.config.js settings:
exportdefault{router: {base: '/doccano/'},// other settingsenv: {baseUrl: '/doccano/v1'},}
Frontend renders correctly, favicon still doesn't work, but that's a minor stuff. What doesn't work is Django admin, also import seems to call a path without /doccano prefix.
PS. I think it would be useful to add such instructions to README :)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Is there an instruction how to run doccano under prefix? So no
doccano.example.com
andapps.example.com/doccano
instead.After some digging into codebase I've managed to run frontend under prefix by using
router
setting innuxt.config.js
:Unfortunately, login doesn't work as it still sends request to
/v1/auth/login
.I also tried changing
PUBLIC_PATH
, but due then files are put in different subdirectory insidefrontent/client/dist
which requires adaptingDockerfile
.I have I feeling that there's an easier way to achieve what I'm trying to achieve and I'm just doing something wrong 🤔
EDIT:
I went a little bit further with these
nuxt.config.js
settings:Frontend renders correctly, favicon still doesn't work, but that's a minor stuff. What doesn't work is Django admin, also import seems to call a path without
/doccano
prefix.PS. I think it would be useful to add such instructions to README :)
Beta Was this translation helpful? Give feedback.
All reactions