Skip to content

Commit

Permalink
Fix build & import & release stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
HugoGresse committed Feb 4, 2024
1 parent 0ee0cb9 commit b8945bc
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ bower_components

# Compiled binary
build
dist

# Dependency directories
node_modules/
Expand Down
2 changes: 1 addition & 1 deletion firebase.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
]
},
"hosting": {
"public": "build",
"public": "dist",
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
"rewrites": [
{
Expand Down
2 changes: 1 addition & 1 deletion functions/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "functions",
"scripts": {
"lint": "tslint --project tsconfig.json",
"lint": "",
"build": "tsc",
"serve": "firebase serve --only functions",
"shell": "firebase functions:shell",
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
href="https://fonts.googleapis.com/css?family=Handlee&display=swap"
rel="stylesheet"
/>
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<link rel="manifest" href="/manifest.json" />
<title>Ical 2 Api</title>
</head>
<body>
Expand Down
4 changes: 2 additions & 2 deletions src/UseRoutingMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const useRoutingMap = () => {
return RoutingMap(organizationId)
}

export const RoutingMap = orgId => ({
export const RoutingMap = (orgId) => ({
orgs: {
base: {
name: 'Organizations',
Expand Down Expand Up @@ -41,7 +41,7 @@ export const RoutingMap = orgId => ({
})

export const getShareableEventUrl = (organization, organizationPrivateData) => {
const baseUrl = `https://${process.env.REACT_APP_HOSTING_FDL}${
const baseUrl = `https://${import.meta.env.VITE_HOSTING_FDL}${
RoutingMap(organization.id).orgs.org.upcomingEvents.url
}`
if (organization.public) {
Expand Down
2 changes: 1 addition & 1 deletion src/auth/Login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const uiConfig = {
emailLinkSignIn: function() {
return {
// Custom FDL domain.
dynamicLinkDomain: process.env.REACT_APP_LOGIN_EMAIL_FDL,
dynamicLinkDomain: import.meta.env.VITE_LOGIN_EMAIL_FDL,
// Always true for email link sign-in.
handleCodeInApp: true,
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const SlackChannelPickerField = ({ organizationId, setFieldValue }) => {
const [addDialogDisplayed, setAddDialogDisplayed] = useState(false)
const slackInstalls = useSlackInstalls()

const slackUrl = `${process.env.REACT_APP_SLACK_URL}&state=${organizationId}`
const slackUrl = `${import.meta.env.VITE_SLACK_URL}&state=${organizationId}`

useEffect(() => {
window.slackResult = installId => {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/firebase.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const serverTimestamp = firebase.firestore.FieldValue.serverTimestamp
export const nowTimestamp = firebase.firestore.Timestamp.now
export const deleteField = firebase.firestore.FieldValue.delete

firebase.functions().useFunctionsEmulator('http://localhost:5000')
// firebase.functions().useFunctionsEmulator('http://localhost:5000')
export const functions = {
getUpcomingEventManually: firebase
.functions()
Expand Down

0 comments on commit b8945bc

Please sign in to comment.