Skip to content

Commit

Permalink
vercel edge setup
Browse files Browse the repository at this point in the history
  • Loading branch information
KorbinianK committed Apr 30, 2024
1 parent 4df19bf commit 45e546b
Show file tree
Hide file tree
Showing 4 changed files with 506 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/bridge-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
"type": "module",
"dependencies": {
"@moralisweb3/common-evm-utils": "^2.26.1",
"@sveltejs/adapter-vercel": "^5.3.0",
"@wagmi/connectors": "^4.1.18",
"@wagmi/core": "^2.8.0",
"@walletconnect/ethereum-provider": "^2.12.2",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import type { Config } from '@sveltejs/adapter-vercel';
import Moralis from 'moralis';
import { type Address, zeroAddress } from 'viem';

Expand All @@ -10,6 +11,10 @@ import { MORALIS_API_KEY } from '$env/static/private';

import type { FetchNftArgs } from '../types/common';

export const config: Config = {
runtime: 'edge',
};

class MoralisNFTRepository implements INFTRepository {
private static instance: MoralisNFTRepository;

Expand Down
2 changes: 1 addition & 1 deletion packages/bridge-ui/svelte.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import adapter from '@sveltejs/adapter-static';
import adapter from '@sveltejs/adapter-vercel';
import { vitePreprocess } from '@sveltejs/kit/vite';

/** @type {import('@sveltejs/kit').Config} */
Expand Down
Loading

0 comments on commit 45e546b

Please sign in to comment.