Skip to content

Commit

Permalink
update default server address
Browse files Browse the repository at this point in the history
  • Loading branch information
christianmat committed Jan 9, 2024
1 parent 48c6c2e commit 98abded
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/js-client/src/core/remote-storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class RemoteStorage {

constructor(config?: RemoteStorageConfig) {
const { serverAddress, instanceId, userId } = config ?? {}
this.serverAddress = serverAddress ?? 'https://rs.frigade.com'
this.serverAddress = serverAddress ?? 'https://api.remote.storage'
this.instanceId = instanceId ?? 'default'
this.userId = userId ?? this.getUserId()
}
Expand Down
3 changes: 1 addition & 2 deletions packages/js-client/test/remote-storage.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { uuid } from '../src/core/utils'
describe('global storage', () => {
function getConfig() {
return {
serverAddress: 'https://rs.frigade.com',
serverAddress: 'https://api.remote.storage',
instanceId: uuid(),
userId: uuid(),
}
Expand All @@ -22,7 +22,6 @@ describe('global storage', () => {
await remoteStorage.setItem('key', 'value')
await remoteStorage.removeItem('key')
const value = await remoteStorage.getItem('key')
console.log(value, typeof value)
expect(value).toEqual(null)
})

Expand Down

0 comments on commit 98abded

Please sign in to comment.