Skip to content

Commit

Permalink
update readme and cors for vercel
Browse files Browse the repository at this point in the history
  • Loading branch information
btkcodedev committed Jan 10, 2025
1 parent 901702c commit ef2514a
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 28 deletions.
18 changes: 9 additions & 9 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ module.exports = {
root: true,
env: { browser: true, es2020: true },
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react-hooks/recommended',
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react-hooks/recommended",
],
ignorePatterns: ['dist', '.eslintrc.cjs'],
parser: '@typescript-eslint/parser',
plugins: ['react-refresh'],
ignorePatterns: ["dist", ".eslintrc.cjs"],
parser: "@typescript-eslint/parser",
plugins: ["react-refresh"],
rules: {
'react-refresh/only-export-components': [
'warn',
"react-refresh/only-export-components": [
"warn",
{ allowConstantExport: true },
],
},
}
};
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Your analytics lineup features Aspect Analysis, a Word Sentiment Heatmap (for th
## Walkthrough

1) To obtain customer review insights, sync your data to Motherduck with the schema: <code>{ "review_text": "string", "stars": "number" }</code> (More schemas will be supported soon). We recommend using Airbyte due to its extensive list of sources and seamless data movement.
2) Visit the Analysr website at (growwithanalysr.vercel.app) and click on the "Get Started Now" button.
2) Visit the Analysr website at (growwithanalysr.web.app) and click on the "Get Started Now" button.
3) Select your business stack and substack; Groq and queries will use this information to fetch insights.
4) Input your Motherduck token and wait for the connection to be established (the time required will depend on your network bandwidth).
5) Select the database and table where your customer reviews or any related reviews exist, and set the data limit.
Expand Down Expand Up @@ -50,7 +50,7 @@ Your analytics lineup features Aspect Analysis, a Word Sentiment Heatmap (for th
- **Visualization**: Recharts
- **State Management**: Zustand
- **Animations**: Framer Motion
- **Hosting**: Firebase (Staging), Vercel (Production)
- **Hosting**: Firebase (Production), Vercel (Experiment)
- **CI/CD**: GitHub Actions for automated deployment


Expand Down
22 changes: 11 additions & 11 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
import js from '@eslint/js';
import globals from 'globals';
import reactHooks from 'eslint-plugin-react-hooks';
import reactRefresh from 'eslint-plugin-react-refresh';
import tseslint from 'typescript-eslint';
import js from "@eslint/js";
import globals from "globals";
import reactHooks from "eslint-plugin-react-hooks";
import reactRefresh from "eslint-plugin-react-refresh";
import tseslint from "typescript-eslint";

export default tseslint.config(
{ ignores: ['dist'] },
{ ignores: ["dist"] },
{
extends: [js.configs.recommended, ...tseslint.configs.recommended],
files: ['**/*.{ts,tsx}'],
files: ["**/*.{ts,tsx}"],
languageOptions: {
ecmaVersion: 2020,
globals: globals.browser,
},
plugins: {
'react-hooks': reactHooks,
'react-refresh': reactRefresh,
"react-hooks": reactHooks,
"react-refresh": reactRefresh,
},
rules: {
...reactHooks.configs.recommended.rules,
'react-refresh/only-export-components': [
'warn',
"react-refresh/only-export-components": [
"warn",
{ allowConstantExport: true },
],
},
Expand Down
8 changes: 2 additions & 6 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
{
"hosting": {
"public": "dist",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
"rewrites": [
{
"source": "**",
Expand All @@ -28,4 +24,4 @@
}
]
}
}
}
17 changes: 17 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"headers": [
{
"source": "**",
"headers": [
{
"key": "Cross-Origin-Opener-Policy",
"value": "same-origin"
},
{
"key": "Cross-Origin-Embedder-Policy",
"value": "require-corp"
}
]
}
]
}

0 comments on commit ef2514a

Please sign in to comment.