mirror of
https://github.com/cudr/slate-collaborative.git
synced 2026-03-02 03:40:18 +00:00
feat: fix server
This commit is contained in:
@@ -35,8 +35,13 @@ class Client extends Component<ClienProps> {
|
||||
alpha: 1
|
||||
})
|
||||
|
||||
const origin =
|
||||
process.env.NODE_ENV === 'production'
|
||||
? window.location.origin
|
||||
: 'http://localhost:9000'
|
||||
|
||||
const options = {
|
||||
url: `http://localhost:9000/${this.props.slug}`,
|
||||
url: `${origin}/${this.props.slug}`,
|
||||
connectOpts: {
|
||||
query: {
|
||||
name: this.props.name,
|
||||
|
||||
Reference in New Issue
Block a user