Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pleroma-fe
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Matrix-Sasuke
pleroma-fe
Commits
835eaf33
Commit
835eaf33
authored
4 years ago
by
HJ
Browse files
Options
Downloads
Patches
Plain Diff
fix local dev websockets
parent
8c82bb61
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+1
-0
1 addition, 0 deletions
CHANGELOG.md
config/index.js
+5
-0
5 additions, 0 deletions
config/index.js
with
6 additions
and
0 deletions
CHANGELOG.md
+
1
−
0
View file @
835eaf33
...
...
@@ -11,6 +11,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
### Fixed
-
Follows/Followers tabs on user profiles now display the content properly.
-
Handle punycode in screen names
-
Fixed local dev mode having non-functional websockets in some cases
## [2.2.2] - 2020-12-22
### Added
...
...
This diff is collapsed.
Click to expand it.
config/index.js
+
5
−
0
View file @
835eaf33
...
...
@@ -3,6 +3,11 @@ const path = require('path')
let
settings
=
{}
try
{
settings
=
require
(
'
./local.json
'
)
if
(
settings
.
target
&&
settings
.
target
.
endsWith
(
'
/
'
))
{
// replacing trailing slash since it can conflict with some apis
// and that's how actual BE reports its url
settings
.
target
=
settings
.
target
.
replace
(
/
\/
$/
,
''
)
}
console
.
log
(
'
Using local dev server settings (/config/local.json):
'
)
console
.
log
(
JSON
.
stringify
(
settings
,
null
,
2
))
}
catch
(
e
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment