This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { browser } from '$app/env'; | |
import { PubSub } from '@aws-amplify/pubsub'; | |
import { Amplify, DataStore, Hub } from 'aws-amplify'; | |
import awsmobile from 'src/aws-exports'; | |
export default async function startAmplifyConfig() { | |
if (!browser) return; | |
Amplify.configure({ ...awsmobile, ssr: true }); | |
PubSub.configure({ ...awsmobile }); | |
DataStore.configure(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1.- Delete amplify/team-provider-info.json, src/aws-exports.js | |
(optional) run amplify configure to setup new aws profile | |
2.- run amplify init |