Skip to content

Commit

Permalink
Fix build base
Browse files Browse the repository at this point in the history
  • Loading branch information
Agusx1211 committed Nov 8, 2023
1 parent 03b5c82 commit 2d9e465
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"private": true,
"version": "0.0.0",
"type": "module",
"homepage": "https://0xsequence.github.io/demo-waas-auth/",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
Expand Down
4 changes: 2 additions & 2 deletions src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react'
import ReactDOM from 'react-dom/client'
import '@0xsequence/design-system/styles.css'
import { ThemeProvider } from '@0xsequence/design-system'
import { createBrowserRouter, RouterProvider } from 'react-router-dom'
import { createHashRouter, RouterProvider } from 'react-router-dom'

import Login from './Login.tsx'
import { GoogleOAuthProvider } from '@react-oauth/google'
Expand All @@ -20,7 +20,7 @@ export const sequence = new Sequence({
key: 'eyJzZWNyZXQiOiJ0YmQiLCJ0ZW5hbnQiOjksImlkZW50aXR5UG9vbElkIjoidXMtZWFzdC0yOjQyYzlmMzlkLWM5MzUtNGQ1Yy1hODQ1LTVjODgxNWM3OWVlMyJ9',
}, defaults.TEMPLATE_NEXT)

export const router = createBrowserRouter([
export const router = createHashRouter([
{
path: '/login',
element: <Login />
Expand Down
4 changes: 3 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@ import { vanillaExtractPlugin } from '@vanilla-extract/vite-plugin'

// https://vitejs.dev/config/
export default defineConfig({
plugins: [react(), vanillaExtractPlugin()]
plugins: [react(), vanillaExtractPlugin()],
// For github pages https://0xsequence.github.io/demo-waas-auth/
base: '/demo-waas-auth/'
})

0 comments on commit 2d9e465

Please sign in to comment.